]> git.mxchange.org Git - friendica.git/commitdiff
using pre - one less str_replace for log viewing
authorFriendika <info@friendika.com>
Mon, 20 Jun 2011 23:10:03 +0000 (16:10 -0700)
committerFriendika <info@friendika.com>
Mon, 20 Jun 2011 23:10:03 +0000 (16:10 -0700)
boot.php
mod/admin.php

index 1364385a1b12863ad388e0e23ed2d43862b2dfc2..888fb7920d856e54f82d6471849d7cc194849159 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -4,7 +4,7 @@ set_time_limit(0);
 ini_set('pcre.backtrack_limit', 250000);
 
 
-define ( 'FRIENDIKA_VERSION',      '2.2.1016' );
+define ( 'FRIENDIKA_VERSION',      '2.2.1017' );
 define ( 'DFRN_PROTOCOL_VERSION',  '2.21'    );
 define ( 'DB_UPDATE_VERSION',      1064      );
 
index df5b6600abab2ecd7aeeeaa70aef605db3ed65fd..920adf05d46be6b6a85d67d5419880ecabf09179 100644 (file)
@@ -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),
        ));
 }