From: Jason Woofenden Date: Mon, 18 Apr 2011 03:30:57 +0000 (-0400) Subject: BREAKING: prefix "basename" var with "wfpl_" X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl.git;a=commitdiff_plain;h=697d643083cb5829c96ed7854bd63309c8f325f3 BREAKING: prefix "basename" var with "wfpl_" previous versions set $GLOBALS['basename'] and the "basename" variable in the main site template. Now it's "wfpl_basename" in both cases. Also, stop checking for $wfpl_basename.css --- diff --git a/run.php b/run.php index 8c780de..2791852 100644 --- a/run.php +++ b/run.php @@ -78,7 +78,7 @@ function run_php($dest = false) { } } - $GLOBALS['basename'] = $basename; + $GLOBALS['wfpl_basename'] = $basename; $html_file = "$basename.html"; $php_file = "$basename.php"; @@ -89,13 +89,7 @@ function run_php($dest = false) { if(file_exists('template.html')) { $GLOBALS['wfpl_main_template'] = new tem(); $GLOBALS['wfpl_main_template']->load("template.html"); - $GLOBALS['wfpl_main_template']->set('basename', $basename); - - # This helps put in a stylesheet link if you have pages with custom css - if(file_exists("$basename.css")) { - $GLOBALS['wfpl_main_template']->set('css_link', "$basename.css"); - $GLOBALS['wfpl_main_template']->sub('css_links'); - } + $GLOBALS['wfpl_main_template']->set('wfpl_basename', $basename); } # cms_get can return one of: