Index: trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_SpecialQueryCreator.php |
— | — | @@ -23,10 +23,7 @@ |
24 | 24 | */ |
25 | 25 | class SMWQueryCreatorPage extends SMWQueryUI { |
26 | 26 | |
27 | | - //protected $m_querystring = ''; |
28 | 27 | protected $m_params = array(); |
29 | | - //protected $m_printouts = array(); |
30 | | - //protected $m_editquery = false; |
31 | 28 | |
32 | 29 | /** |
33 | 30 | * Constructor. |
— | — | @@ -45,7 +42,6 @@ |
46 | 43 | global $wgOut, $wgRequest, $smwgQEnabled; |
47 | 44 | |
48 | 45 | $this->setHeaders(); |
49 | | -// var_dump(SpecialPage::getSafeTitleFor( 'Ask' )->getLocalURL( "showformatoptions" ));die; |
50 | 46 | |
51 | 47 | if ( !$smwgQEnabled ) { |
52 | 48 | $wgOut->addHTML( '<br />' . wfMsg( 'smw_iq_disabled' ) ); |
— | — | @@ -53,10 +49,10 @@ |
54 | 50 | if(!($this->processFormatOptions($wgRequest))){ |
55 | 51 | $params=array_merge( |
56 | 52 | array( |
57 | | - 'format' => $wgRequest->getVal( 'format', 'ol' ), |
58 | | - 'offset' => $wgRequest->getVal( 'offset', '0' ), |
59 | | - 'limit' => $wgRequest->getVal( 'limit', '20' ) |
60 | | - ),$this->processFormatSelectBox($wgRequest)); |
| 53 | + 'format' => $wgRequest->getVal( 'format' ), |
| 54 | + 'offset' => $wgRequest->getVal( 'offset', '0' ), |
| 55 | + 'limit' => $wgRequest->getVal( 'limit', '20' ) |
| 56 | + ),$this->processFormatSelectBox($wgRequest)); |
61 | 57 | $this->m_ui_helper = SMWQueryUIHelper::makeFromUI( |
62 | 58 | $this->processQueryFormBox($wgRequest), |
63 | 59 | $params, |
— | — | @@ -113,7 +109,7 @@ |
114 | 110 | $result .= '<div id="additional_options" style="display:none">'; |
115 | 111 | $result .= '<p><strong>' . wfMsg( 'smw_ask_printhead' ) . "</strong></p>\n" . |
116 | 112 | '<span style="font-weight: normal;">' . wfMsg( 'smw_ask_printdesc' ) . '</span>' . "\n" . |
117 | | - '<p><textarea id = "add_property" name="po" cols="20" rows="6"></textarea></p>' . "\n"; |
| 113 | + '<p>'. $this->getPOFormBox($this->getPOStrings(),true).'</p>' . "\n"; |
118 | 114 | |
119 | 115 | // sorting inputs |
120 | 116 | if ( $smwgQSortingSupport ) { |