From eb740c0c654c3026331bbf5cf5b81e4179e8b50f Mon Sep 17 00:00:00 2001 From: vargenau Date: Thu, 2 Oct 2014 13:42:18 +0000 Subject: [PATCH] Sort by pagename by default git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@9158 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/plugin/AllPages.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/plugin/AllPages.php b/lib/plugin/AllPages.php index d20b484e8..38df9e867 100644 --- a/lib/plugin/AllPages.php +++ b/lib/plugin/AllPages.php @@ -64,6 +64,10 @@ class WikiPlugin_AllPages { $args = $this->getArgs($argstr, $request); + if (empty($args['sortby'])) { + $args['sortby'] = 'pagename'; + } + $pages = false; // Todo: extend given _GET args $caption = _("All pages in this wiki (%d total):"); -- 2.45.0