diff options
author | Christian Schneider | 2008-05-18 16:41:10 +0000 |
---|---|---|
committer | Christian Schneider | 2008-05-18 16:41:10 +0000 |
commit | 70c3cf5bffed02792f15100ff775fec1e23a0c2d (patch) | |
tree | f58708d69bb3acabe4e46ae56b1c1321b886fc48 /it.class | |
parent | e158abb0132f50b14327a3ddf69f7f0d75fcc88d (diff) | |
download | itools-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.class | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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{"); |