includes/template.php
changeset 615 8eed90734867
parent 607 935f3799b654
child 650 e45183014778
equal deleted inserted replaced
614:78d1e71dc720 615:8eed90734867
  2023     if ( !$session->user_logged_in && $data = $cache->fetch('anon_sidebar') )
  2023     if ( !$session->user_logged_in && $data = $cache->fetch('anon_sidebar') )
  2024     {
  2024     {
  2025       if ( @$data['_theme_'] === $this->theme )
  2025       if ( @$data['_theme_'] === $this->theme )
  2026       {
  2026       {
  2027         unset($data['_theme_']);
  2027         unset($data['_theme_']);
       
  2028         foreach ( $data as &$md )
       
  2029         {
       
  2030           $md = str_replace('$USERNAME$', $session->username, $md);
       
  2031           $md = str_replace('$PAGEID$', $paths->page, $md);
       
  2032         }
  2028         return $data;
  2033         return $data;
  2029       }
  2034       }
  2030     }
  2035     }
  2031     
  2036     
  2032     if ( !$this->fetch_block('Links') )
  2037     if ( !$this->fetch_block('Links') )