diff --git a/views/bootstrap/class.LogManagement.php b/views/bootstrap/class.LogManagement.php
index 7384911f1..41737f6d6 100644
--- a/views/bootstrap/class.LogManagement.php
+++ b/views/bootstrap/class.LogManagement.php
@@ -49,8 +49,8 @@ class LetoDMS_View_LogManagement extends LetoDMS_Bootstrap_Style {
print "
\n";
print "".$entry." | \n";
print "\n";
- print "".getLongReadableDate(filectime($contentdir.$entry))." | \n";
- print "".formatted_size(filesize($contentdir.$entry))." | \n";
+ print "".getLongReadableDate(filectime($this->contentdir.$entry))." | \n";
+ print "".LetoDMS_Core_File::format_filesize(filesize($this->contentdir.$entry))." | \n";
print "";
print " ".getMLText("rm_file")."";
@@ -69,7 +69,7 @@ class LetoDMS_View_LogManagement extends LetoDMS_Bootstrap_Style {
function show() { /* {{{ */
$dms = $this->params['dms'];
$user = $this->params['user'];
- $contentdir = $this->params['contentdir'];
+ $this->contentdir = $this->params['contentdir'];
$logname = $this->params['logname'];
if(!$logname) {
@@ -80,11 +80,11 @@ class LetoDMS_View_LogManagement extends LetoDMS_Bootstrap_Style {
$this->contentHeading(getMLText("log_management"));
- $handle = opendir($contentdir);
+ $handle = opendir($this->contentdir);
$entries = array();
$wentries = array();
while ($e = readdir($handle)){
- if (is_dir($contentdir.$e)) continue;
+ if (is_dir($this->contentdir.$e)) continue;
if (strpos($e,".log")==FALSE) continue;
if (strcmp($e,"current.log")==0) continue;
if(substr($e, 0, 6) == 'webdav') {
@@ -130,13 +130,13 @@ class LetoDMS_View_LogManagement extends LetoDMS_Bootstrap_Style {
htmlEndPage();
- } elseif(file_exists($contentdir.$logname)){
+ } elseif(file_exists($this->contentdir.$logname)){
// $this->htmlStartPage(getMLText("backup_tools"));
// $this->contentSubHeading(sanitizeString($logname));
echo $logname."\n";
- readfile($contentdir.$logname);
+ readfile($this->contentdir.$logname);
echo " \n";
// echo " |