From ab920ae360d5cca446784675bb0401349c50d9fb Mon Sep 17 00:00:00 2001 From: shadlaws Date: Mon, 18 Feb 2013 19:12:45 +0100 Subject: #1749, 1754, 1901 - Eliminate incompatibility with Zend Guard Loader. - added MY_Kohana to provide wrapper for auto_load(), which loads dummy class when none found. - revised Bootstrap to load MY_Kohana. This is based on the patch described here: http://blog.teatime.com.tw/1/post/403 --- application/Bootstrap.php | 2 +- modules/gallery/libraries/MY_Kohana.php | 45 +++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 modules/gallery/libraries/MY_Kohana.php diff --git a/application/Bootstrap.php b/application/Bootstrap.php index 93353b47..a79ccba4 100644 --- a/application/Bootstrap.php +++ b/application/Bootstrap.php @@ -35,7 +35,7 @@ require SYSPATH.'core/Event'.EXT; final class Event extends Event_Core {} require SYSPATH.'core/Kohana'.EXT; -final class Kohana extends Kohana_Core {} +require MODPATH.'gallery/libraries/MY_Kohana'.EXT; require SYSPATH.'core/Kohana_Exception'.EXT; require MODPATH.'gallery/libraries/MY_Kohana_Exception'.EXT; diff --git a/modules/gallery/libraries/MY_Kohana.php b/modules/gallery/libraries/MY_Kohana.php new file mode 100644 index 00000000..d344c8ed --- /dev/null +++ b/modules/gallery/libraries/MY_Kohana.php @@ -0,0 +1,45 @@ += 3)) { + // Load a dummy class instead. + eval("class $class {}"); + } + + // Return the same result. + return $found; + } +} \ No newline at end of file -- cgit v1.2.3