From 8abf94f3526d4c1a7fa846b72a0ce64e0d2d03db Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Fri, 14 Sep 2007 01:29:12 -0400 Subject: [PATCH 1/1] file_run now REQUIRES that the main function have _main suffix --- file_run.php | 3 --- 1 file changed, 3 deletions(-) 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(); } -- 1.7.10.4