aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-06-20 16:10:03 -0700
committerFriendika <info@friendika.com>2011-06-20 16:10:03 -0700
commit285d617569f525b213318bcb2eadcbb34400e4f3 (patch)
treea49c86053819547be6dd845efb392e9bbc1b8f39 /mod
parentde24f681120209191fbb1460496cabfd8e81413b (diff)
downloadvolse-hubzilla-285d617569f525b213318bcb2eadcbb34400e4f3.tar.gz
volse-hubzilla-285d617569f525b213318bcb2eadcbb34400e4f3.tar.bz2
volse-hubzilla-285d617569f525b213318bcb2eadcbb34400e4f3.zip
using pre - one less str_replace for log viewing
Diffstat (limited to 'mod')
-rw-r--r--mod/admin.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/admin.php b/mod/admin.php
index df5b6600a..920adf05d 100644
--- a/mod/admin.php
+++ b/mod/admin.php
@@ -627,9 +627,9 @@ function admin_page_logs(&$a){
$seek = fseek($fp,0-$size,SEEK_END);
if($seek === 0) {
fgets($fp); // throw away the first partial line
- $data = str_replace(array("\n","\t"),array('<br />','&nbsp;&nbsp;&nbsp;&nbsp;'),escape_tags(fread($fp,$size)));
+ $data = escape_tags(fread($fp,$size));
while(! feof($fp))
- $data .= str_replace(array("\n","\t"),array('<br />','&nbsp;&nbsp;&nbsp;&nbsp;'),escape_tags(fread($fp,4096)));
+ $data .= escape_tags(fread($fp,4096));
}
fclose($fp);
}
@@ -646,7 +646,7 @@ function admin_page_logs(&$a){
// name, label, value, help string, extra data...
'$debugging' => array('debugging', t("Debugging"),get_config('system','debugging'), ""),
- '$logfile' => array('logfile', t("Log file"), get_config('system','logfile'), "Must be writable by web server. Relative to your Friendika index.php."),
+ '$logfile' => array('logfile', t("Log file"), get_config('system','logfile'), t("Must be writable by web server. Relative to your Friendika index.php.")),
'$loglevel' => array('loglevel', t("Log level"), get_config('system','loglevel'), "", $log_choices),
));
}