Skip to content

Commit

Permalink
fix core test
Browse files Browse the repository at this point in the history
  • Loading branch information
tsteur committed Mar 25, 2014
1 parent 08a0e53 commit 4c810a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion piwik.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@

\Piwik\FrontController::createConfigObject();

$GLOBALS['PIWIK_TRACKER_DEBUG'] = \Piwik\Config::getInstance()->Tracker['debug'];
$GLOBALS['PIWIK_TRACKER_DEBUG'] = (bool) \Piwik\Config::getInstance()->Tracker['debug'];
if ($GLOBALS['PIWIK_TRACKER_DEBUG'] === true) {
require_once PIWIK_INCLUDE_PATH . '/core/Loader.php';

Expand Down
2 changes: 1 addition & 1 deletion tests/PHPUnit/Core/ReleaseCheckListTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,10 @@ public function testPiwikTrackerDebugIsOff()

$_GET = $oldGet;

$this->assertEquals(0, \Piwik\Config::getInstance()->Tracker['debug']);
$this->assertTrue($GLOBALS['PIWIK_TRACKER_DEBUG'] === false);
}


/**
* This tests that all PHP files start with <?php
* This would help detect errors such as a php file starting with spaces
Expand Down

0 comments on commit 4c810a9

Please sign in to comment.