diff options
author | Remi Collet <fedora@famillecollet.com> | 2013-09-29 17:48:52 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2013-09-29 17:48:52 +0200 |
commit | ce129625274030609afb4c4d8d48cf10eb604c18 (patch) | |
tree | 42b2ac89df06725423ddb24290cc8bb70237ab7b /glpi-0.84-zend.patch | |
parent | 4450a3b9d83bf670684cd25b741877bafc642ea4 (diff) |
glpi: 0.84.2 (WIP)
Diffstat (limited to 'glpi-0.84-zend.patch')
-rw-r--r-- | glpi-0.84-zend.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/glpi-0.84-zend.patch b/glpi-0.84-zend.patch new file mode 100644 index 0000000..c79fb94 --- /dev/null +++ b/glpi-0.84-zend.patch @@ -0,0 +1,34 @@ +diff -up config/based_config.php.orig config/based_config.php +--- config/based_config.php.orig 2013-09-29 17:26:58.940921006 +0200 ++++ config/based_config.php 2013-09-29 17:27:03.507928854 +0200 +@@ -176,4 +176,12 @@ if (!defined('GLPI_HTMLAWED')) { + # if htmLawed available in system, use (in config_path.php) + # define('GLPI_HTMLAWED', '/usr/share/htmlawed/htmLawed.php'); + } ++ ++// Default patch to Zend Framework 2 ++if (!defined('GLPI_ZEND')) { ++ define('GLPI_ZEND', GLPI_ROOT.'/lib/Zend'); ++ ++ # if Zend Framework 2 available in system, use (in config_path.php) ++ # define('GLPI_ZEND', '/usr/share/php/Zend'); ++} + ?> +diff -up inc/autoload.function.php.orig inc/autoload.function.php +--- inc/autoload.function.php.orig 2013-09-12 21:17:15.000000000 +0200 ++++ inc/autoload.function.php 2013-09-29 17:22:33.420537657 +0200 +@@ -323,11 +323,9 @@ function glpi_autoload($classname) { + } + } + +-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 . '/Loader/StandardAutoloader.php'); ++$option = array(Zend\Loader\StandardAutoloader::LOAD_NS => array('Zend' => GLPI_ZEND)); ++$loader = new Zend\Loader\StandardAutoloader($option); + $loader->register(); + + // SimplePie autoloader |