From 9026a458a084991bbda2d04b2207832cd878f2fb Mon Sep 17 00:00:00 2001
From: pedro_morgan <pedro_morgan@ispconfig3>
Date: Sat, 18 Aug 2007 22:59:59 -0400
Subject: [PATCH] * Ammended config in with $DB connection idea * Minor tweaks to app * Made $conf global in teh tempalte class (its not global in the loader function either)
---
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