From a44efae424f6cdca4e0d11d59631bb6f8558d069 Mon Sep 17 00:00:00 2001
From: pedro_morgan <pedro_morgan@ispconfig3>
Date: Sun, 19 Aug 2007 05:28:14 -0400
Subject: [PATCH] Removed debug alert()
---
interface/lib/app.inc.php | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/interface/lib/app.inc.php b/interface/lib/app.inc.php
index a43759a..e79c45c 100644
--- a/interface/lib/app.inc.php
+++ b/interface/lib/app.inc.php
@@ -67,12 +67,12 @@
public function uses($classes)
{
- $cl = explode(',',$classes);
+ $cl = explode(', ',$classes);
if(is_array($cl)) {
foreach($cl as $classname){
if(!array_key_exists($classname, $this->_loaded_classes)){
- include_once($this->_conf['classpath'] . '/'.$classname.'.inc.php');
- $this->$classname = new $classname;
+ require_once($this->_conf['classpath'] . '/'.$classname.'.inc.php');
+ $this->$classname = new $classname();
$this->_loaded_classes[$classname] = true;
}
}
@@ -81,9 +81,9 @@
public function load($files)
{
- $fl = explode(',',$files);
+ $fl = explode(',', $files);
if(is_array($fl)) {
- foreach($fl as $file) {
+ foreach($fl as $file){
include_once($this->_conf['classpath'] . '/'.$file.'.inc.php');
}
}
--
Gitblit v1.9.1