Created
August 8, 2012 16:30
-
-
Save nfreear/3296410 to your computer and use it in GitHub Desktop.
Patch/ Diff for proposed changes to core Piwik for JISC Track OER project/ NDF, August 2012
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/piwik.php b/piwik.php | |
| index ab8b43c..22838cd 100644 | |
| --- a/piwik.php | |
| +++ b/piwik.php | |
| @@ -75,7 +75,21 @@ if($GLOBALS['PIWIK_TRACKER_DEBUG'] === true) | |
| if(!defined('PIWIK_ENABLE_TRACKING') || PIWIK_ENABLE_TRACKING) | |
| { | |
| - $process = new Piwik_Tracker(); | |
| +//ou-specific | |
| + #$process = new Piwik_Tracker(); | |
| + | |
| + $tracker_plugin = 'AlternateImage'; # Was 'CreativeCommons' | |
| + $tracker_class = $tracker_plugin .'_Tracker'; | |
| + | |
| + require_once PIWIK_INCLUDE_PATH . | |
| + "/plugins/$tracker_plugin/$tracker_class.php"; | |
| + | |
| + if (class_exists($tracker_class)) { | |
| + $process = new $tracker_class(); | |
| + } else { | |
| + $process = new Piwik_Tracker(); | |
| + } | |
| +//ou-specific ends. | |
| try { | |
| $process->main(); | |
| } catch(Exception $e) { | |
| diff --git a/plugins/CoreHome/Controller.php b/plugins/CoreHome/Controller.php | |
| index 7898934..d69b2d9 100644 | |
| --- a/plugins/CoreHome/Controller.php | |
| +++ b/plugins/CoreHome/Controller.php | |
| @@ -88,6 +88,7 @@ class Piwik_CoreHome_Controller extends Piwik_Controller | |
| public function index() | |
| { | |
| +#var_dump(__CLASS__ .'::index()'); | |
| $this->setDateTodayIfWebsiteCreatedToday(); | |
| $view = $this->getDefaultIndexView(); | |
| echo $view->render(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment