diff options
author | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-07-08 08:19:14 +0400 |
---|---|---|
committer | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-07-08 08:19:14 +0400 |
commit | cd0cbab3731b988223e7ad44d78306e18fe3096c (patch) | |
tree | 2681dc3b6ee7393c03dca36359a9c9bb8c22d63c /plugins/Referers | |
parent | 9d95e1016eb204db445c263975f990b9d59d7f4d (diff) |
fixes #803 - remove unnecessary require_once from core, plugins, and parts of
libs. (I didn't touch: open-flash-chart, Zend Framework, and PEAR HTML.)
Diffstat (limited to 'plugins/Referers')
-rw-r--r-- | plugins/Referers/API.php | 2 | ||||
-rw-r--r-- | plugins/Referers/functions.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Referers/API.php b/plugins/Referers/API.php index 1ae24a1832..4082fb8d98 100644 --- a/plugins/Referers/API.php +++ b/plugins/Referers/API.php @@ -9,7 +9,7 @@ * @package Piwik_Referers */ -require_once "Referers/functions.php"; +require_once PIWIK_INCLUDE_PATH . '/plugins/Referers/functions.php'; /** * diff --git a/plugins/Referers/functions.php b/plugins/Referers/functions.php index 2c8fe61a0c..2d048746c7 100644 --- a/plugins/Referers/functions.php +++ b/plugins/Referers/functions.php @@ -21,7 +21,7 @@ function Piwik_getPathFromUrl($url) function Piwik_getSearchEngineUrlFromName($name) { - require_once "DataFiles/SearchEngines.php"; + require_once PIWIK_INCLUDE_PATH . '/core/DataFiles/SearchEngines.php'; if(isset($GLOBALS['Piwik_SearchEngines_NameToUrl'][$name])) { $url = 'http://'.$GLOBALS['Piwik_SearchEngines_NameToUrl'][$name]; @@ -52,7 +52,7 @@ function Piwik_getSearchEngineHostFromUrl($url) function Piwik_getSearchEngineUrlFromUrlAndKeyword($url, $keyword) { - require_once "DataFiles/SearchEngines.php"; + require_once PIWIK_INCLUDE_PATH . '/core/DataFiles/SearchEngines.php'; $keyword = urlencode($keyword); $keyword = str_replace(urlencode('+'), urlencode(' '), $keyword); $path = @$GLOBALS['Piwik_SearchEngines'][Piwik_getSearchEngineHostFromUrl($url)][2]; |