mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 20:51:30 +00:00
add space after scriptname in add_log_line()
This commit is contained in:
parent
f02074c794
commit
635d8253fe
|
@ -412,9 +412,9 @@ function add_log_line($msg="", $priority=null) { /* {{{ */
|
||||||
elseif(!empty($_SERVER['REMOTE_ADDR']))
|
elseif(!empty($_SERVER['REMOTE_ADDR']))
|
||||||
$ip = $_SERVER['REMOTE_ADDR'];
|
$ip = $_SERVER['REMOTE_ADDR'];
|
||||||
if(!empty($_SERVER["REQUEST_URI"]))
|
if(!empty($_SERVER["REQUEST_URI"]))
|
||||||
$scriptname = basename($_SERVER["REQUEST_URI"], ".php");
|
$scriptname = basename($_SERVER["REQUEST_URI"], ".php").' ';
|
||||||
else
|
else
|
||||||
$scriptname = basename($_SERVER["SCRIPT_NAME"]);
|
$scriptname = basename($_SERVER["SCRIPT_NAME"]).' ';
|
||||||
if($user)
|
if($user)
|
||||||
$logger->log($user->getLogin()." (".$ip.") ".$scriptname.($msg ? $msg : ''), $priority);
|
$logger->log($user->getLogin()." (".$ip.") ".$scriptname.($msg ? $msg : ''), $priority);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue
Block a user