From: Jason Woofenden Date: Fri, 14 Sep 2007 05:29:12 +0000 (-0400) Subject: file_run now REQUIRES that the main function have _main suffix X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;ds=sidebyside;h=8abf94f3526d4c1a7fa846b72a0ce64e0d2d03db;p=wfpl.git file_run now REQUIRES that the main function have _main suffix --- diff --git a/file_run.php b/file_run.php index bca5c18..e177797 100644 --- a/file_run.php +++ b/file_run.php @@ -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(); }