Autoloading needs to be done in Registry::
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 24 Jun 2009 18:23:12 +0000 (12:23 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 24 Jun 2009 18:23:12 +0000 (12:23 -0600)
imp/lib/base.php
ingo/lib/base.php
jeta/lib/base.php
kronolith/lib/base.php
news/lib/base.php
timeobjects/lib/base.php

index e3b997b..7dcb640 100644 (file)
  */
 
 // Determine BASE directories.
-$imp_dir = dirname(__FILE__);
-require_once $imp_dir . '/base.load.php';
+require_once dirname(__FILE__) . '/base.load.php';
 
-// Load the Horde Framework core, and set up inclusion paths.
+// Load the Horde Framework core.
 require_once HORDE_BASE . '/lib/core.php';
-Horde_Autoloader::addClassPath($imp_dir);
-Horde_Autoloader::addClassPattern('/^IMP_/', $imp_dir);
 
 // Registry.
 $s_ctrl = 0;
index 5a6d148..b9b45df 100644 (file)
  */
 
 // Determine BASE directories.
-$ingo_dir = dirname(__FILE__);
-require_once $ingo_dir . '/base.load.php';
+require_once dirname(__FILE__) . '/base.load.php';
 
-// Load the Horde Framework core, and set up inclusion paths.
+// Load the Horde Framework core.
 require_once HORDE_BASE . '/lib/core.php';
-Horde_Autoloader::addClassPath($ingo_dir);
-Horde_Autoloader::addClassPattern('/^Ingo_/', $ingo_dir);
 
 // Registry.
 $registry = &Registry::singleton();
index 842c086..93858d9 100644 (file)
@@ -22,10 +22,8 @@ if (!defined('JETA_BASE')) {
     define('JETA_BASE', dirname(__FILE__) . '/..');
 }
 
-// Load the Horde Framework core, and set up inclusion paths.
+// Load the Horde Framework core.
 require_once HORDE_BASE . '/lib/core.php';
-require_once 'Horde/Autoloader.php';
-Horde_Autoloader::addClassPattern('/^Jeta_/', JETA_BASE . '/lib/');
 
 // Registry.
 $registry = &Registry::singleton();
index 5243d3f..d8fb386 100644 (file)
@@ -9,19 +9,14 @@
  * used:
  * - $session_control - Sets special session control limitations
  *
- * $Horde: kronolith/lib/base.php,v 1.142 2008/10/15 15:15:14 jan Exp $
- *
  * @package Kronolith
  */
 
 // Determine BASE directories.
-$kronolith_dir = dirname(__FILE__);
-require_once $kronolith_dir . '/base.load.php';
+require_once dirname(__FILE__) . '/base.load.php';
 
-/* Load the Horde Framework core, and set up inclusion paths. */
+/* Load the Horde Framework core. */
 require_once HORDE_BASE . '/lib/core.php';
-Horde_Autoloader::addClassPath($kronolith_dir);
-Horde_Autoloader::addClassPattern('/^Kronolith_/', $kronolith_dir);
 
 /* Registry. */
 $session_control = Horde_Util::nonInputVar('session_control');
index fc4e2e6..5fae630 100644 (file)
@@ -19,13 +19,9 @@ if (!defined('HORDE_BASE')) {
     define('HORDE_BASE', dirname(__FILE__) . '/../..');
 }
 
-// Load the Horde Framework core, and set up inclusion paths.
+// Load the Horde Framework core.
 require_once HORDE_BASE . '/lib/core.php';
 
-$news_dir = dirname(__FILE__);
-Horde_Autoloader::addClassPath($news_dir);
-Horde_Autoloader::addClassPattern('/^News/', $news_dir);
-
 // Registry.
 $registry = &Registry::singleton();
 if (($pushed = $registry->pushApp('news', !defined('AUTH_HANDLER'))) instanceof PEAR_Error) {
index 82c5867..0fc4c17 100644 (file)
@@ -17,10 +17,8 @@ if (!defined('HORDE_BASE')) {
     }
 }
 
-/* Load the Horde Framework core, and set up inclusion paths. */
+/* Load the Horde Framework core. */
 require_once HORDE_BASE . '/lib/core.php';
-Horde_Autoloader::addClassPath($rto_dir);
-Horde_Autoloader::addClassPattern('/^TimeObjects_/', $rto_dir);
 
 /* Registry. */
 $session_control = Horde_Util::nonInputVar('session_control');