mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-10 02:33:02 +02:00
feature 3221 Add Logger class
git-svn-id: http://piwigo.org/svn/trunk@31102 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -204,25 +204,6 @@ function ws_std_get_tag_xml_attributes()
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Writes info to the log file
|
||||
*/
|
||||
function ws_logfile($string)
|
||||
{
|
||||
global $conf;
|
||||
|
||||
if (!$conf['ws_enable_log'])
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
file_put_contents(
|
||||
$conf['ws_log_filepath'],
|
||||
'['.date('c').'] '.$string."\n",
|
||||
FILE_APPEND
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* create a tree from a flat list of categories, no recursivity for high speed
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user