Fix strict notices for PHP 5.4
This commit is contained in:
@@ -2296,7 +2296,7 @@ class G
|
||||
* @param string $sText
|
||||
* @return string strtolower($sText)
|
||||
*/
|
||||
public function toLower ($sText)
|
||||
public static function toLower ($sText)
|
||||
{
|
||||
return strtolower( $sText );
|
||||
}
|
||||
@@ -5260,12 +5260,12 @@ class G
|
||||
* @param type $pathData
|
||||
* @param type $file
|
||||
*/
|
||||
public function log($message, $pathData = PATH_DATA, $file = 'cron.log')
|
||||
public static function log($message, $pathData = PATH_DATA, $file = 'cron.log')
|
||||
{
|
||||
$config = System::getSystemConfiguration();
|
||||
G::LoadSystem('logger');
|
||||
|
||||
$oLogger =& Logger::getSingleton($pathData, PATH_SEP, $file);
|
||||
$oLogger = Logger::getSingleton($pathData, PATH_SEP, $file);
|
||||
$oLogger->limitFile = $config['number_log_file'];
|
||||
$oLogger->limitSize = $config['size_log_file'];
|
||||
$oLogger->write($message);
|
||||
|
||||
@@ -46,7 +46,7 @@ class Logger
|
||||
$this->filePath = $this->path . $this->fullName;
|
||||
}
|
||||
|
||||
public function getSingleton($pathData, $pathSep, $file = 'cron.log')
|
||||
public static function getSingleton($pathData, $pathSep, $file = 'cron.log')
|
||||
{
|
||||
if (self::$instance == null) {
|
||||
self::$instance = new Logger($pathData, $pathSep, $file);
|
||||
|
||||
@@ -113,7 +113,7 @@ class pmLicenseManager
|
||||
$this->activateFeatures ();
|
||||
}
|
||||
|
||||
public function &getSingleton()
|
||||
public static function getSingleton()
|
||||
{
|
||||
if (self::$instance == null) {
|
||||
self::$instance = new pmLicenseManager ();
|
||||
|
||||
Reference in New Issue
Block a user