summaryrefslogtreecommitdiffstats
path: root/include/main.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/main.php')
-rw-r--r--include/main.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/include/main.php b/include/main.php
index b97db02..265d20c 100644
--- a/include/main.php
+++ b/include/main.php
@@ -37,7 +37,6 @@ define('RPMPHP_VERSION', '1.0.0-dev');
require 'config.php';
require 'Smarty/Smarty.class.php';
-require dirname(__FILE__).'/../class/FedoraClient.php';
$smarty = new Smarty();
@@ -52,6 +51,18 @@ $ariane[] = array (
);
/**
+ * Manage class autoload
+ *
+ * @param string $classname
+ *
+ * @return void
+ */
+function __autoload($classname)
+{
+ require dirname(__FILE__).'/../class/'.$classname.'.php';
+}
+
+/**
* Get repositories list
*
* @param object $db a reference to the database