summaryrefslogtreecommitdiffstats
path: root/include/main.php
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2010-08-01 11:01:26 +0200
committerRemi Collet <fedora@famillecollet.com>2010-08-01 11:01:26 +0200
commit524eafd21886717271be06d05bdfe92adce0b6e1 (patch)
tree4080445f98b7530ac4dd78501ec0c7652ba8beed /include/main.php
parentde7b6100e3ef554797e86c92e0c3c13ead4dfe67 (diff)
parent06a6a4f777272421970bb827c898f6d36f1ab669 (diff)
Merge http://github.com/trasher/rpmphp
Diffstat (limited to 'include/main.php')
-rw-r--r--include/main.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/include/main.php b/include/main.php
index 286cf4e..1c3a863 100644
--- a/include/main.php
+++ b/include/main.php
@@ -37,9 +37,8 @@ define('RPMPHP_VERSION', '1.0.0-dev');
require 'config.php';
-if (!defined('CLIONLY'))
-{
- require 'Smarty/Smarty.class.php';
+if (!defined('CLIONLY')) {
+ include 'Smarty/Smarty.class.php';
$smarty = new Smarty();
@@ -57,13 +56,13 @@ if (!defined('CLIONLY'))
/**
* Manage class autoload
*
- * @param string $classname
+ * @param string $classname The class name
*
* @return void
*/
function __autoload($classname)
{
- require dirname(__FILE__).'/../class/'.$classname.'.php';
+ include dirname(__FILE__).'/../class/'.$classname.'.php';
}
/**