template: Fixed undefined $from_internal in assign_bool(); theme.cfg now require()d on theme load
authorDan
Fri, 19 Dec 2008 21:29:17 -0500
changeset 767 cba10e1031eb
parent 766 d6690840e331
child 768 111fd7a4415c
template: Fixed undefined $from_internal in assign_bool(); theme.cfg now require()d on theme load
includes/template.php
--- a/includes/template.php	Fri Dec 19 21:27:51 2008 -0500
+++ b/includes/template.php	Fri Dec 19 21:29:17 2008 -0500
@@ -434,6 +434,8 @@
         'style' => $this->style
       );
     
+    require(ENANO_ROOT . "/themes/{$this->theme}/theme.cfg");
+    
     if ( $local_page_exists && isset($paths->pages[$local_page]) )
     {
       $local_cdata =& $paths->pages[$local_page];
@@ -1421,7 +1423,7 @@
    * @param $from_internal bool Internal switch, just omit (@todo document)
    */
   
-  function assign_bool($vars)
+  function assign_bool($vars, $from_internal = false)
   {
     foreach ( $vars as $key => $value )
     {
@@ -1744,7 +1746,7 @@
 (
   (?:https?|ftp|irc):\/\/                            # protocol
   (?:[^@\s\]"\':]+@)?                                # username (FTP only but whatever)
-  (?:(?:(?:[a-z0-9-]+\.)*)[a-z0-9\[\]:]+)           # hostname
+  (?:(?:(?:[a-z0-9-]+\.)*)[a-z0-9\[\]:]+)            # hostname
   (?::[0-9]+)?                                       # port number
   (?:\/[A-z0-9_%\|~`!\!@#\$\^&?=\*\(\):;\.,\/-]*)?   # path
 )