X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=main.php;h=dc1199b3d5b3ce13b2aecf2134955840fd272773;hb=fdee70b966cf519d56cc2228759d9f01e8cd15f7;hp=e088d67218753c5aa0b3836a4d805cff0dae38bb;hpb=23dfbcc20fc6d20fb5be211e5af50cdcb8565c8e;p=wfpl.git
diff --git a/main.php b/main.php
index e088d67..dc1199b 100644
--- a/main.php
+++ b/main.php
@@ -1,10 +1,10 @@
404404 File Not Found
';
@@ -110,7 +110,7 @@ function wfpl_main($dest = false) {
# files can return a basename or URL of a page to be run/displayed
$other = file_run($php_file);
if($other) {
- run_php($other);
+ wfpl_main($other);
return;
}
} elseif($html_exists) {
@@ -121,12 +121,12 @@ function wfpl_main($dest = false) {
}
# Check for $GLOBALS['wfpl_template'] because it might have been set (or unset) by the php script.
- if($GLOBALS['wfpl_template'] || $GLOBALS['wfpl_main_template']) {
- if($GLOBALS['wfpl_main_template']) {
+ if(isset($GLOBALS['wfpl_template']) || isset($GLOBALS['wfpl_main_template'])) {
+ if(isset($GLOBALS['wfpl_main_template'])) {
# if there was a template for that page, and one for the whole
# site, copy all template sections that have been show()n to the
# site-wide template
- if($GLOBALS['wfpl_template']) {
+ if(isset($GLOBALS['wfpl_template'])) {
$GLOBALS['wfpl_main_template']->merge($GLOBALS['wfpl_template']);
}
@@ -134,8 +134,8 @@ function wfpl_main($dest = false) {
}
- # You'll probably want to require_once(__DIR__.'/'.'code/wfpl/messages.php') or
- # require_once(__DIR__.'/'.'code/wfpl/session_messages.php') in code/config.php
+ # You'll probably want to require_once(__DIR__.'/'.'lib/wfpl/messages.php') or
+ # require_once(__DIR__.'/'.'lib/wfpl/session_messages.php') in config.php
if(function_exists('display_messages')) {
if(function_exists('atexit_now')) {
atexit_now();