Fixed lack of str_replace() to runtime-patch cache_anon_sidebar
authorDan
Wed, 09 Jul 2008 18:38:44 -0400
changeset 615 8eed90734867
parent 614 78d1e71dc720
child 616 e311f5e6f904
Fixed lack of str_replace() to runtime-patch cache_anon_sidebar
includes/template.php
--- a/includes/template.php	Wed Jul 09 18:02:32 2008 -0400
+++ b/includes/template.php	Wed Jul 09 18:38:44 2008 -0400
@@ -2025,6 +2025,11 @@
       if ( @$data['_theme_'] === $this->theme )
       {
         unset($data['_theme_']);
+        foreach ( $data as &$md )
+        {
+          $md = str_replace('$USERNAME$', $session->username, $md);
+          $md = str_replace('$PAGEID$', $paths->page, $md);
+        }
         return $data;
       }
     }