Exemplo n.º 1
0
 /**
  * logInfo
  * to help debugging Payment notification for example
  * Keep it for compatibilty
  */
 protected function logInfo($text, $type = 'message', $doLog = false)
 {
     if (!class_exists('tsmConfig')) {
         require JPATH_ROOT . DS . 'administrator' . DS . 'components' . DS . 'com_tsmart' . DS . 'helpers' . DS . 'config.php';
     }
     tsmConfig::loadConfig();
     if (isset($this->_debug) and $this->_debug or $doLog) {
         $oldLogFileName = tsmConfig::$logFileName;
         tsmConfig::$logFileName = $this->getLogFileName();
         logInfo($text, $type);
         tsmConfig::$logFileName = $oldLogFileName;
     }
 }