Permalink
Browse files

Correcing unit tests

  • Loading branch information...
1 parent 48b7786 commit 0e363c952e1b596d5bd97d50f863d61bc145315d @chdemko chdemko committed May 9, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 libraries/legacy/controller/controller.php
View
8 libraries/legacy/controller/controller.php
@@ -316,7 +316,7 @@ public function __construct($config = array())
$this->redirect = null;
$this->taskMap = array();
- if (JDEBUG)
+ if (defined('JDEBUG') && JDEBUG)
{
JLog::addLogger(array('text_file' => 'jcontroller.log.php'), JLog::ALL, array('controller'));
}
@@ -505,7 +505,7 @@ protected function checkEditId($context, $id)
$result = in_array((int) $id, $values);
- if (JDEBUG)
+ if (defined('JDEBUG') && JDEBUG)
{
JLog::add(
sprintf(
@@ -875,7 +875,7 @@ protected function holdEditId($context, $id)
$values = array_unique($values);
$app->setUserState($context . '.id', $values);
- if (JDEBUG)
+ if (defined('JDEBUG') && JDEBUG)
{
JLog::add(
sprintf(
@@ -984,7 +984,7 @@ protected function releaseEditId($context, $id)
unset($values[$index]);
$app->setUserState($context . '.id', $values);
- if (JDEBUG)
+ if (defined('JDEBUG') && JDEBUG)
{
JLog::add(
sprintf(

0 comments on commit 0e363c9

Please sign in to comment.