]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - inc/config.php
Fixed #13 - tri par date / tri par titre
[github/wallabag/wallabag.git] / inc / config.php
index 4c1978b545153e9a7e063ebc1285d0b2cbfff418..d468228d201a14cf1facd4711f5e335a71f4c0d4 100644 (file)
@@ -35,8 +35,8 @@ if (!isset($_SESSION['token_poche'])) {
 }
 
 # Traitement des paramètres et déclenchement des actions
+$view               = (isset ($_REQUEST['view'])) ? htmlentities($_REQUEST['view']) : 'index';
 $action             = (isset ($_REQUEST['action'])) ? htmlentities($_REQUEST['action']) : '';
-$_SESSION['view']   = (isset ($_GET['view'])) ? htmlentities($_GET['view']) : 'index';
 $_SESSION['sort']   = (isset ($_REQUEST['sort'])) ? htmlentities($_REQUEST['sort']) : 'id';
 $id                 = (isset ($_REQUEST['id'])) ? htmlspecialchars($_REQUEST['id']) : '';
 $url                = (isset ($_GET['url'])) ? $_GET['url'] : '';