JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
fixed format_bool() to actually format as bool
[wfpl.git] / file_run.php
index bca5c18..d69b5b6 100644 (file)
 function file_run($filename) {
        require_once($filename);
        $func = basename($filename, '.php') . '_main';
-       if(!function_exists($func)) {
-               $func = basename($filename, '.php');
-       }
 
-       return $func();
+       if(function_exists($func)) {
+               return $func();
+       }
 }
 
 ?>