summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorChristian Schneider2008-05-18 16:41:10 +0000
committerChristian Schneider2008-05-18 16:41:10 +0000
commit70c3cf5bffed02792f15100ff775fec1e23a0c2d (patch)
treef58708d69bb3acabe4e46ae56b1c1321b886fc48 /it.class
parente158abb0132f50b14327a3ddf69f7f0d75fcc88d (diff)
downloaditools-70c3cf5bffed02792f15100ff775fec1e23a0c2d.tar.gz
itools-70c3cf5bffed02792f15100ff775fec1e23a0c2d.tar.bz2
itools-70c3cf5bffed02792f15100ff775fec1e23a0c2d.zip
Use class_exists to check if we need to extend by xy_tools class
Diffstat (limited to 'it.class')
-rw-r--r--it.class5
1 files changed, 1 insertions, 4 deletions
diff --git a/it.class b/it.class
index bf9969d..9383d8e 100644
--- a/it.class
+++ b/it.class
@@ -46,11 +46,8 @@ function createconfig($p = array())
'service' => $parts[2],
);
- if ($file = @fopen($p['service'] . "_tools.class", "r", true))
- {
+ if (class_exists($p['service'] . "_tools"))
$extends = "extends {$p['service']}_tools ";
- fclose($file);
- }
$code = array("class {$p['service']} $extends{");