JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
set $running_locally (wfpl doesn't anymore)
authorJason Woofenden <jason@jasonwoof.com>
Tue, 24 Jan 2012 16:45:53 +0000 (11:45 -0500)
committerJason Woofenden <jason@jasonwoof.com>
Tue, 24 Jan 2012 16:45:53 +0000 (11:45 -0500)
code/cms.php
code/wfpl

index d6229b4..4f42655 100644 (file)
@@ -1,6 +1,9 @@
 <?php
 
 function cms_display($basename, &$tem) {
+       if(preg_match('/([.]l(ocal)?$)|^[0-9.]*$/', $_SERVER['HTTP_HOST'])) {
+               $GLOBALS['wfpl_main_template']->set('$running_locally');
+       }
        $tem->set('$host', this_host());
        $nav_items = db_get_assocs('cms_pages', "coalesce(nullif(nav_title,''), title) as title,filename", 'where navbar!=0 order by navbar');
        if($nav_items) {
index 2329271..c311c03 160000 (submodule)
--- a/code/wfpl
+++ b/code/wfpl
@@ -1 +1 @@
-Subproject commit 23292710a663791c27bd0b769779435f13753cff
+Subproject commit c311c032739b97156dd373b270c0915bf248be76