Index: trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_SpecialAsk.php |
— | — | @@ -52,7 +52,7 @@ |
53 | 53 | // This code rather hacky since there are many ways to call that special page, the most involved of |
54 | 54 | // which is the way that this page calls itself when data is submitted via the form (since the shape |
55 | 55 | // of the parameters then is governed by the UI structure, as opposed to being governed by reason). |
56 | | - global $wgRequest; |
| 56 | + global $wgRequest, $smwgQMaxInlineLimit; |
57 | 57 | |
58 | 58 | // First make all inputs into a simple parameter list that can again be parsed into components later. |
59 | 59 | |
— | — | @@ -132,6 +132,7 @@ |
133 | 133 | $this->m_params['limit'] = ($this->m_params['format'] == 'rss')?10:20; // standard limit for RSS |
134 | 134 | } |
135 | 135 | } |
| 136 | + $this->m_params['limit'] = min($this->m_params['limit'], $smwgQMaxInlineLimit); |
136 | 137 | |
137 | 138 | $this->m_editquery = ( $wgRequest->getVal( 'eq' ) != '' ) || ('' == $this->m_querystring ); |
138 | 139 | } |