Update click.php
/* Logging the click $f = fopen($clickheatConf['logPath'].$final.'/'.date('Y-m-d').'.log', 'a'); if (!is_resource($f)) */ /* Logging the Click without the PHP Warning Spam when a new page is indexed in Clickheat */ if (!($f = @fopen($clickheatConf['logPath'].$final.'/'.date('Y-m-d').'.log', 'a')))
This commit is contained in:
parent
7cf2db9759
commit
22b9fbcdb0
|
@ -109,8 +109,7 @@ if ($clickheatConf['filesize'] !== 0)
|
|||
}
|
||||
}
|
||||
/* Logging the click */
|
||||
$f = fopen($clickheatConf['logPath'].$final.'/'.date('Y-m-d').'.log', 'a');
|
||||
if (!is_resource($f))
|
||||
if (!($f = @fopen($clickheatConf['logPath'].$final.'/'.date('Y-m-d').'.log', 'a')))
|
||||
{
|
||||
/* Can't open the log, let's try to create the directory */
|
||||
if (!is_dir(dirname($clickheatConf['logPath'])))
|
||||
|
|
Loading…
Reference in a new issue