diff options
author | nicosomb <nicolas@loeuillet.org> | 2013-04-16 12:58:03 +0200 |
---|---|---|
committer | nicosomb <nicolas@loeuillet.org> | 2013-04-16 12:58:03 +0200 |
commit | 9fee2e7266a269a8795b96b972cdc62bbcb3329b (patch) | |
tree | 0abca9c0e46821a37d559d84051062b3ce431117 /inc/functions.php | |
parent | 139769aa245fd58d032cb009303b0ea2cc4187cd (diff) | |
download | wallabag-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-x | inc/functions.php | 4 |
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 | */ |
185 | function display_view() | 185 | function 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; |