diff options
author | Remi Collet <fedora@famillecollet.com> | 2013-11-03 11:24:00 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2013-11-03 11:24:00 +0100 |
commit | 6e722f8d2659acb23ec6cc08346db31758cfcd44 (patch) | |
tree | 2ea7c9d66acbeb75ae5dd681a92bc0aa3064fbbf /glpi-0.84-zend.patch | |
parent | e9dad8e262831c057955487e078e97c8bb8c1530 (diff) |
GLPI 0.84.3
Diffstat (limited to 'glpi-0.84-zend.patch')
-rw-r--r-- | glpi-0.84-zend.patch | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/glpi-0.84-zend.patch b/glpi-0.84-zend.patch deleted file mode 100644 index f8de812..0000000 --- a/glpi-0.84-zend.patch +++ /dev/null @@ -1,55 +0,0 @@ -Index: branches/0.84-bugfixes/config/based_config.php -=================================================================== ---- branches/0.84-bugfixes/config/based_config.php (revision 21914) -+++ branches/0.84-bugfixes/config/based_config.php (revision 21915) -@@ -138,11 +138,10 @@ - - // Default Zend_Loader path - if (!defined("GLPI_ZEND_PATH")) { -- define("GLPI_ZEND_PATH", GLPI_ROOT."/lib"); -+ define("GLPI_ZEND_PATH", GLPI_ROOT."/lib/Zend"); - -- # if Zend installed, use (in config_path.php) -- # define("GLPI_ZEND_PATH", "/usr/share/php/"); // if not in standard include_path -- # define("GLPI_ZEND_PATH", ""); // if already in include_path -+ # if Zend Framework 2 available in system, use (in config_path.php) -+ # define('GLPI_ZEND_PATH', '/usr/share/php/Zend'); - } - - // Default SimplePie path -Index: branches/0.84-bugfixes/inc/autoload.function.php -=================================================================== ---- branches/0.84-bugfixes/inc/autoload.function.php (revision 21914) -+++ branches/0.84-bugfixes/inc/autoload.function.php (revision 21915) -@@ -289,16 +289,6 @@ - ezcBase::autoload($classname); - return true; - } -- // Is Zend class ? --// if (preg_match('/^Zend/',$classname,$matches)) { --// if (GLPI_ZEND_PATH) { --// set_include_path(GLPI_ZEND_PATH . PATH_SEPARATOR . get_include_path()); --// } --// require_once("Zend/Loader.php"); --// --// Zend_Loader::loadClass($classname); --// return true; --// } - - // Do not try to load phpcas using GLPI autoload - if (preg_match('/^CAS_.*/', $classname)) { -@@ -323,11 +313,9 @@ - } - } - --require_once (GLPI_ROOT . '/lib/Zend/Loader/ClassMapAutoloader.php'); --$loader = new Zend\Loader\ClassMapAutoloader(); --// Register the class map: --$loader->registerAutoloadMap(GLPI_ROOT . '/lib/Zend/autoload_classmap.php'); --// Register with spl_autoload: -+require_once (GLPI_ZEND_PATH . '/Loader/StandardAutoloader.php'); -+$option = array(Zend\Loader\StandardAutoloader::LOAD_NS => array('Zend' => GLPI_ZEND_PATH)); -+$loader = new Zend\Loader\StandardAutoloader($option); - $loader->register(); - - // SimplePie autoloader |