equal
deleted
inserted
replaced
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') ) |