http://www.mediawiki.org/wiki/Special:Code/MediaWiki/95137

Revision: 95137
Author:   devayon
Date:     2011-08-21 13:15:30 +0000 (Sun, 21 Aug 2011)
Log Message:
-----------
renamed a method for clarity

Modified Paths:
--------------
    
trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_SpecialQueryCreator.php

Modified: 
trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_SpecialQueryCreator.php
===================================================================
--- 
trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_SpecialQueryCreator.php
  2011-08-21 13:14:44 UTC (rev 95136)
+++ 
trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_SpecialQueryCreator.php
  2011-08-21 13:15:30 UTC (rev 95137)
@@ -33,7 +33,7 @@
         */
        protected function makePage( $p ) {
                global $wgOut;
-               $htmlOutput = $this->makeResults( $p );
+               $htmlOutput = $this->makeForm( $p );
                if ( $this->uiCore->getQueryString() != "" ) {
                        if ( $this->usesNavigationBar() ) {
                                $htmlOutput .= Html::rawElement( 'div', array( 
'class' => 'smwqcnavbar' ),
@@ -96,19 +96,19 @@
        }
 
        /**
-        * Creates the input form
+        * Creates the search form
         *
         * @global OutputPage $wgOut
         * @global string $smwgScriptPath
         * @return string
         */
-       protected function makeResults() {
+       protected function makeForm() {
                global $wgOut, $smwgScriptPath;
                $this->enableJQuery();
                $result = '<div class="smwqcerrors">' . $this->getErrorsHtml() 
. '</div>';
                $specTitle = $this->getTitle();
                $formatBox = $this->getFormatSelectBoxSep( 'broadtable' );
-               $result .= Html::openElement( 'form', array( 'name' => 'qc', 
'action' => $specTitle->escapeLocalURL(), 'method' => 'get' ) ) . "\n" .
+               $result .= Html::openElement( 'form', array( 'name' => 'qc', 
'id'=>'smwqcform', 'action' => $specTitle->escapeLocalURL(), 'method' => 'get' 
) ) . "\n" .
                        Html::hidden( 'title', $specTitle->getPrefixedText() );
                $result .= wfMsg( 'smw_qc_query_help' );
                // Main query and format options


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to