- Edited
We remarked that sort the table in "Manage" > "Pages" by clicking on the column name doesn't return a result and a white page appears. You can fix this with this simple modification.Affected file: pages.inc.phpOpen "staff" > "pages.inc.php"Line 13: Remove entirly or escape "$orderWays=array('DESC'=>'-','ASC'=>'');"// We will not use this array, so we removed itLines 15 to 20 change from://Sorting options...if($sort && $sortOptions) { $pages = $pages->order_by( $orderWays[strtoupper($_REQUEST ?: '' . $sortOptions);}to the following://Sorting options...if ($_REQUEST=='DESC') {$pages = $pages->order_by($sortOptions, QuerySet:);} else {$pages = $pages->order_by($sortOptions, QuerySet:);}Line 28: Remove entirly or escape "$qstr = '&'. Http:($qs);" // We think it's not necessary, because it returns only an ampersand and no stringLine29 change from:$qstr .= '&order='.($order=='DESC' ? 'ASC' : 'DESC');to the following code:$qstr .= '&order='.($_REQUEST=='DESC' ? 'ASC' : 'DESC'); // DMT CHANGED $order== TO $_REQUESTThat's it, now the table will sort by column and change sorting direction from ASC to DESC and reverse by clicking a second time on the columns name.Best regards,Jürgen