Revert deletion of the favorite actions

This commit is contained in:
Alexis Degrugillier
2014-04-13 07:35:17 -04:00
parent 86066b1659
commit cd87e2000a
2 changed files with 8 additions and 0 deletions

View File

@@ -96,6 +96,10 @@ class FreshRSS_index_Controller extends Minz_ActionController {
case 'a':
$hasUnread = $this->view->nb_not_read > 0;
break;
case 's':
// This is deprecated. The favorite button does not exist anymore
$hasUnread = $this->view->nb_favorites['unread'] > 0;
break;
case 'c':
$hasUnread = (!isset($this->view->cat_aside[$getId])) || ($this->view->cat_aside[$getId]->nbNotRead() > 0);
break;

View File

@@ -418,6 +418,10 @@ class FreshRSS_EntryDAO extends Minz_ModelPdo {
$where .= 'f.priority > 0 ';
$joinFeed = true;
break;
case 's':
// This is deprecated. The favorite button does not exist anymore
$where .= 'e1.is_favorite = 1 ';
break;
case 'c':
$where .= 'f.category = ? ';
$values[] = intval($id);