Fix strict notices for PHP 5.4

This commit is contained in:
Julio Cesar Laura
2014-10-13 16:33:39 -04:00
parent 0c2a82cf5c
commit 7fa2ada956
3 changed files with 6 additions and 6 deletions

View File

@@ -2296,7 +2296,7 @@ class G
* @param string $sText * @param string $sText
* @return string strtolower($sText) * @return string strtolower($sText)
*/ */
public function toLower ($sText) public static function toLower ($sText)
{ {
return strtolower( $sText ); return strtolower( $sText );
} }
@@ -5260,12 +5260,12 @@ class G
* @param type $pathData * @param type $pathData
* @param type $file * @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(); $config = System::getSystemConfiguration();
G::LoadSystem('logger'); G::LoadSystem('logger');
$oLogger =& Logger::getSingleton($pathData, PATH_SEP, $file); $oLogger = Logger::getSingleton($pathData, PATH_SEP, $file);
$oLogger->limitFile = $config['number_log_file']; $oLogger->limitFile = $config['number_log_file'];
$oLogger->limitSize = $config['size_log_file']; $oLogger->limitSize = $config['size_log_file'];
$oLogger->write($message); $oLogger->write($message);

View File

@@ -46,7 +46,7 @@ class Logger
$this->filePath = $this->path . $this->fullName; $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) { if (self::$instance == null) {
self::$instance = new Logger($pathData, $pathSep, $file); self::$instance = new Logger($pathData, $pathSep, $file);

View File

@@ -113,7 +113,7 @@ class pmLicenseManager
$this->activateFeatures (); $this->activateFeatures ();
} }
public function &getSingleton() public static function getSingleton()
{ {
if (self::$instance == null) { if (self::$instance == null) {
self::$instance = new pmLicenseManager (); self::$instance = new pmLicenseManager ();