Skip to content
This repository has been archived by the owner on Nov 26, 2017. It is now read-only.

Commit

Permalink
Correcing unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chdemko committed May 9, 2012
1 parent 48b7786 commit 0e363c9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libraries/legacy/controller/controller.php
Expand Up @@ -316,7 +316,7 @@ public function __construct($config = array())
$this->redirect = null; $this->redirect = null;
$this->taskMap = array(); $this->taskMap = array();


if (JDEBUG) if (defined('JDEBUG') && JDEBUG)
{ {
JLog::addLogger(array('text_file' => 'jcontroller.log.php'), JLog::ALL, array('controller')); JLog::addLogger(array('text_file' => 'jcontroller.log.php'), JLog::ALL, array('controller'));
} }
Expand Down Expand Up @@ -505,7 +505,7 @@ protected function checkEditId($context, $id)


$result = in_array((int) $id, $values); $result = in_array((int) $id, $values);


if (JDEBUG) if (defined('JDEBUG') && JDEBUG)
{ {
JLog::add( JLog::add(
sprintf( sprintf(
Expand Down Expand Up @@ -875,7 +875,7 @@ protected function holdEditId($context, $id)
$values = array_unique($values); $values = array_unique($values);
$app->setUserState($context . '.id', $values); $app->setUserState($context . '.id', $values);


if (JDEBUG) if (defined('JDEBUG') && JDEBUG)
{ {
JLog::add( JLog::add(
sprintf( sprintf(
Expand Down Expand Up @@ -984,7 +984,7 @@ protected function releaseEditId($context, $id)
unset($values[$index]); unset($values[$index]);
$app->setUserState($context . '.id', $values); $app->setUserState($context . '.id', $values);


if (JDEBUG) if (defined('JDEBUG') && JDEBUG)
{ {
JLog::add( JLog::add(
sprintf( sprintf(
Expand Down

0 comments on commit 0e363c9

Please sign in to comment.