Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-06-15 19:35:51 +0400
committervipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-06-15 19:35:51 +0400
commit1543bf05e2c3b90613937d4f6832d853bd46656e (patch)
treea1bc6a52960be9a42850974e61b72f6e7794386c /piwik.php
parent02fd4ef95602bfe3d45a197d1b806d61cc24fd90 (diff)
refs #620, refs #803 - refactor autoloader into core/Loader.php (class
Piwik_Loader); remove unnecessary require_once in core/Common.php
Diffstat (limited to 'piwik.php')
-rw-r--r--piwik.php38
1 files changed, 0 insertions, 38 deletions
diff --git a/piwik.php b/piwik.php
index 3a07e74037..96360d7ba4 100644
--- a/piwik.php
+++ b/piwik.php
@@ -25,44 +25,6 @@ if((@include "Version.php") === false || !class_exists('Piwik_Version', false))
. PATH_SEPARATOR . PIWIK_INCLUDE_PATH . '/plugins');
}
-function piwikAutoloader($class)
-{
- $class = str_replace('_', '/', $class) . '.php';
- if(substr($class, 0, 6) === 'Piwik/')
- {
- $class = substr($class, 6);
- if(file_exists(PIWIK_INCLUDE_PATH . "/core/" . $class))
- {
- include_once PIWIK_INCLUDE_PATH . "/core/" . $class;
- }
- else
- {
- include_once PIWIK_INCLUDE_PATH . "/plugins/" . $class;
- }
- }
- else
- {
- include_once PIWIK_INCLUDE_PATH . "/libs/" . $class;
- }
-}
-
-// Note: only one __autoload per PHP instance
-if(function_exists('spl_autoload_register'))
-{
- spl_autoload_register('piwikAutoloader'); // use the SPL autoload stack
- if(function_exists('__autoload'))
- {
- spl_auto_register('__autoload');
- }
-}
-else
-{
- function __autoload($class)
- {
- piwikAutoloader($class);
- }
-}
-
require_once "Common.php";
require_once "PluginsManager.php";
require_once "Tracker.php";