diff options
| author | 2014-04-13 08:16:43 -0400 | |
|---|---|---|
| committer | 2014-04-13 08:16:43 -0400 | |
| commit | 3a736e902c5af7f215bbf91dc54be00bf82f8df3 (patch) | |
| tree | c816621869648d7fc541e2b21b132e6f0b45a25f /app/layout | |
| parent | 1e032608a61c29a29d418451018b3eb86843f8cf (diff) | |
Move state constants from Configuration to Entry
Diffstat (limited to 'app/layout')
| -rw-r--r-- | app/layout/nav_menu.phtml | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/app/layout/nav_menu.phtml b/app/layout/nav_menu.phtml index 67539c747..8b1ca1f6f 100644 --- a/app/layout/nav_menu.phtml +++ b/app/layout/nav_menu.phtml @@ -8,11 +8,11 @@ <?php if ($this->loginOk) { ?> <?php $url_state = $this->url; - if ($this->state & FreshRSS_Configuration::STATE_READ) { - $url_state['params']['state'] = $this->state - FreshRSS_Configuration::STATE_READ; + if ($this->state & FreshRSS_Entry::STATE_READ) { + $url_state['params']['state'] = $this->state - FreshRSS_Entry::STATE_READ; $checked = 'true'; } else { - $url_state['params']['state'] = $this->state + FreshRSS_Configuration::STATE_READ; + $url_state['params']['state'] = $this->state + FreshRSS_Entry::STATE_READ; $checked = 'false'; } ?> @@ -24,11 +24,11 @@ <?php echo FreshRSS_Themes::icon('read'); ?> </a> <?php - if ($this->state & FreshRSS_Configuration::STATE_NOT_READ) { - $url_state['params']['state'] = $this->state - FreshRSS_Configuration::STATE_NOT_READ; + if ($this->state & FreshRSS_Entry::STATE_NOT_READ) { + $url_state['params']['state'] = $this->state - FreshRSS_Entry::STATE_NOT_READ; $checked = 'true'; } else { - $url_state['params']['state'] = $this->state + FreshRSS_Configuration::STATE_NOT_READ; + $url_state['params']['state'] = $this->state + FreshRSS_Entry::STATE_NOT_READ; $checked = 'false'; } ?> @@ -40,11 +40,11 @@ <?php echo FreshRSS_Themes::icon('unread'); ?> </a> <?php - if ($this->state & FreshRSS_Configuration::STATE_FAVORITE) { - $url_state['params']['state'] = $this->state - FreshRSS_Configuration::STATE_FAVORITE; + if ($this->state & FreshRSS_Entry::STATE_FAVORITE) { + $url_state['params']['state'] = $this->state - FreshRSS_Entry::STATE_FAVORITE; $checked = 'true'; } else { - $url_state['params']['state'] = $this->state + FreshRSS_Configuration::STATE_FAVORITE; + $url_state['params']['state'] = $this->state + FreshRSS_Entry::STATE_FAVORITE; $checked = 'false'; } ?> @@ -56,11 +56,11 @@ <?php echo FreshRSS_Themes::icon('starred'); ?> </a> <?php - if ($this->state & FreshRSS_Configuration::STATE_NOT_FAVORITE) { - $url_state['params']['state'] = $this->state - FreshRSS_Configuration::STATE_NOT_FAVORITE; + if ($this->state & FreshRSS_Entry::STATE_NOT_FAVORITE) { + $url_state['params']['state'] = $this->state - FreshRSS_Entry::STATE_NOT_FAVORITE; $checked = 'true'; } else { - $url_state['params']['state'] = $this->state + FreshRSS_Configuration::STATE_NOT_FAVORITE; + $url_state['params']['state'] = $this->state + FreshRSS_Entry::STATE_NOT_FAVORITE; $checked = 'false'; } ?> |
