JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
file_run now REQUIRES that the main function have _main suffix
authorJason Woofenden <jason183@herkamire.com>
Fri, 14 Sep 2007 05:29:12 +0000 (01:29 -0400)
committerJason Woofenden <jason183@herkamire.com>
Fri, 14 Sep 2007 05:29:12 +0000 (01:29 -0400)
file_run.php

index bca5c18..e177797 100644 (file)
@@ -39,9 +39,6 @@
 function file_run($filename) {
        require_once($filename);
        $func = basename($filename, '.php') . '_main';
-       if(!function_exists($func)) {
-               $func = basename($filename, '.php');
-       }
 
        return $func();
 }