Use autoloader.
authorJan Schneider <jan@horde.org>
Thu, 8 Jan 2009 17:58:59 +0000 (18:58 +0100)
committerJan Schneider <jan@horde.org>
Thu, 8 Jan 2009 17:58:59 +0000 (18:58 +0100)
Nuke one more possible silenced fatal error.

framework/Imap_Client/test/Horde/Imap/test_client.php

index ce0f675..5a33208 100644 (file)
@@ -48,14 +48,10 @@ $test_mbox = 'TestMailboxTest';
 $test_mbox_utf8 = 'TestMailboxTest1รจ';
 /** End Configuration **/
 
-
-$currdir = dirname(__FILE__);
-$dir = dirname(dirname(dirname($currdir))) . '/lib/Horde/Imap/';
-require_once $dir . 'Client.php';
-require_once $dir . '/Client/Sort.php';
+require_once 'Horde/Autoloader.php';
 
 /* Check for Horde_Cache::. */
-if (@require_once 'Horde/Cache.php') {
+if (@include_once 'Horde/Cache.php') {
     $horde_cache = true;
     print "Using Horde_Imap_Client_Cache (driver: " . $cache_params['driver'] . ").\n\n";
     $params['cache'] = $cache_params;