mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 12:11:19 +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']))
|
||||
$ip = $_SERVER['REMOTE_ADDR'];
|
||||
if(!empty($_SERVER["REQUEST_URI"]))
|
||||
$scriptname = basename($_SERVER["REQUEST_URI"], ".php");
|
||||
$scriptname = basename($_SERVER["REQUEST_URI"], ".php").' ';
|
||||
else
|
||||
$scriptname = basename($_SERVER["SCRIPT_NAME"]);
|
||||
$scriptname = basename($_SERVER["SCRIPT_NAME"]).' ';
|
||||
if($user)
|
||||
$logger->log($user->getLogin()." (".$ip.") ".$scriptname.($msg ? $msg : ''), $priority);
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue
Block a user