Permalink
Browse files

Fix use of wrong logging function and incorrect breaks... how on eart…

…h did *that* ever work?
  • Loading branch information...
1 parent b8d1435 commit fce56f364c73df1d754b167c1c88c81de79dbf46 @Mark-H committed Jul 2, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 core/components/importx/model/importx/importx.class.php
@@ -102,13 +102,14 @@ public function log ($type,$msg) {
case 'complete':
$this->modx->log(modX::LOG_LEVEL_INFO,'COMPLETED');
sleep(1);
+ break;
case 'warn':
$this->modx->log(modX::LOG_LEVEL_WARN,$msg);
break;
- break;
default:
case 'info':
$this->modx->log(modX::LOG_LEVEL_INFO,$msg);
+ break;
}
}
@@ -160,14 +161,13 @@ private function getDefaults() {
private function setExecutionLimit() {
/* Set a time out limit */
if (ini_get('safe_mode')) {
- $this->modx->log('warn',$this->modx->lexicon('importx.log.safemodeon'));
+ $this->log('warn',$this->modx->lexicon('importx.log.safemodeon'));
} else {
set_time_limit(0);
$limit = ini_get('max_execution_time');
$limit = ($limit > 0) ? $limit : $this->modx->lexicon('importx.infinite');
- $this->modx->log('info',$this->modx->lexicon('importx.log.timelimit',array('limit' => $limit)));
+ $this->log('info',$this->modx->lexicon('importx.log.timelimit',array('limit' => $limit)));
}
}
}
-?>

0 comments on commit fce56f3

Please sign in to comment.