aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/functions.php
diff options
context:
space:
mode:
authornicosomb <nicolas@loeuillet.org>2013-04-16 12:58:03 +0200
committernicosomb <nicolas@loeuillet.org>2013-04-16 12:58:03 +0200
commit9fee2e7266a269a8795b96b972cdc62bbcb3329b (patch)
tree0abca9c0e46821a37d559d84051062b3ce431117 /inc/functions.php
parent139769aa245fd58d032cb009303b0ea2cc4187cd (diff)
downloadwallabag-9fee2e7266a269a8795b96b972cdc62bbcb3329b.tar.gz
wallabag-9fee2e7266a269a8795b96b972cdc62bbcb3329b.tar.zst
wallabag-9fee2e7266a269a8795b96b972cdc62bbcb3329b.zip
Fixed #13 - tri par date / tri par titre
Diffstat (limited to 'inc/functions.php')
-rwxr-xr-xinc/functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/functions.php b/inc/functions.php
index a7430585..464410cb 100755
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -182,7 +182,7 @@ function action_to_do($action, $id, $url, $token)
182/** 182/**
183 * Détermine quels liens afficher : home, fav ou archives 183 * Détermine quels liens afficher : home, fav ou archives
184 */ 184 */
185function display_view() 185function display_view($view)
186{ 186{
187 global $db; 187 global $db;
188 188
@@ -205,7 +205,7 @@ function display_view()
205 break; 205 break;
206 } 206 }
207 207
208 switch ($_SESSION['view']) 208 switch ($view)
209 { 209 {
210 case 'archive': 210 case 'archive':
211 $sql = "SELECT * FROM entries WHERE is_read=? " . $order; 211 $sql = "SELECT * FROM entries WHERE is_read=? " . $order;