JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
file_run now REQUIRES that the main function have _main suffix
[wfpl.git] / 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();
 }