From 06a6a4f777272421970bb827c898f6d36f1ab669 Mon Sep 17 00:00:00 2001 From: "Johan \"Papa\" Cwiklinski" Date: Sun, 1 Aug 2010 10:55:01 +0200 Subject: Applying PEAR coding standards, refs #48 --- include/main.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'include') 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'; } /** -- cgit