Index: trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_SpecialAsk.php |
— | — | @@ -23,7 +23,7 @@ |
24 | 24 | class SMW_AskPage { |
25 | 25 | |
26 | 26 | static function execute() { |
27 | | - global $wgRequest, $wgOut, $smwgQEnabled, $smwgQMaxLimit, $wgUser, $smwgIQSortingEnabled; |
| 27 | + global $wgRequest, $wgOut, $smwgQEnabled, $smwgQMaxLimit, $wgUser, $smwgQSortingSupport; |
28 | 28 | |
29 | 29 | $skin = $wgUser->getSkin(); |
30 | 30 | |
— | — | @@ -31,7 +31,7 @@ |
32 | 32 | $sort = $wgRequest->getVal( 'sort' ); |
33 | 33 | $order = $wgRequest->getVal( 'order' ); |
34 | 34 | $limit = $wgRequest->getVal( 'limit' ); |
35 | | - if ('' == $limit) $limit = 20; //$smwgIQDefaultLimit; |
| 35 | + if ('' == $limit) $limit = 20; |
36 | 36 | $offset = $wgRequest->getVal( 'offset' ); |
37 | 37 | if ('' == $offset) $offset = 0; |
38 | 38 | |
— | — | @@ -43,7 +43,7 @@ |
44 | 44 | '<input type="hidden" name="title" value="' . $spectitle->getPrefixedText() . '"/>' ; |
45 | 45 | $html .= '<textarea name="query" cols="40" rows="6">' . htmlspecialchars($query) . '</textarea><br />' . "\n"; |
46 | 46 | |
47 | | - if ($smwgIQSortingEnabled) { |
| 47 | + if ($smwgQSortingSupport) { |
48 | 48 | $html .= wfMsg('smw_ask_sortby') . ' <input type="text" name="sort" value="' . |
49 | 49 | htmlspecialchars($sort) . '"/> <select name="order"><option '; |
50 | 50 | // TODO: don't show sort widgets if sorting is not enabled |