Index: trunk/extensions/SemanticForms/specials/SF_FormStart.php |
— | — | @@ -121,7 +121,7 @@ |
122 | 122 | * Helper function - returns a URL that includes Special:FormEdit. |
123 | 123 | */ |
124 | 124 | static function getFormEditURL( $formName, $targetName) { |
125 | | - $fe = SFUtils::getSpecialPage( 'FormEdit' ); |
| 125 | + $fe = SpecialPageFactory::getPage( 'FormEdit' ); |
126 | 126 | // Special handling for forms whose name contains a slash. |
127 | 127 | if ( strpos( $formName, '/' ) !== false ) { |
128 | 128 | return $fe->getTitle()->getLocalURL( array( 'form' => $formName, 'target' => $targetName ) ); |
Index: trunk/extensions/SemanticForms/specials/SF_FormEdit.php |
— | — | @@ -71,7 +71,7 @@ |
72 | 72 | |
73 | 73 | static function printAltFormsList( $alt_forms, $target_name ) { |
74 | 74 | $text = ""; |
75 | | - $fe = SFUtils::getSpecialPage( 'FormEdit' ); |
| 75 | + $fe = SpecialPageFactory::getPage( 'FormEdit' ); |
76 | 76 | $fe_url = $fe->getTitle()->getFullURL(); |
77 | 77 | $i = 0; |
78 | 78 | foreach ( $alt_forms as $alt_form ) { |
Index: trunk/extensions/SemanticForms/includes/SF_Form.php |
— | — | @@ -52,7 +52,7 @@ |
53 | 53 | |
54 | 54 | function createMarkup() { |
55 | 55 | $title = Title::makeTitle( SF_NS_FORM, $this->mFormName ); |
56 | | - $fs = SFUtils::getSpecialPage( 'FormStart' ); |
| 56 | + $fs = SpecialPageFactory::getPage( 'FormStart' ); |
57 | 57 | $form_start_url = SFUtils::titleURLString( $fs->getTitle() ) . "/" . $title->getPartialURL(); |
58 | 58 | $form_description = wfMsgForContent( 'sf_form_docu', $this->mFormName, $form_start_url ); |
59 | 59 | $form_input = "{{#forminput:form=" . $this->mFormName; |
Index: trunk/extensions/SemanticForms/includes/SF_FormLinker.php |
— | — | @@ -204,7 +204,7 @@ |
205 | 205 | return null; |
206 | 206 | } |
207 | 207 | |
208 | | - $fe = SFUtils::getSpecialPage( 'FormEdit' ); |
| 208 | + $fe = SpecialPageFactory::getPage( 'FormEdit' ); |
209 | 209 | |
210 | 210 | $fe_url = $fe->getTitle()->getLocalURL(); |
211 | 211 | if ( count( $default_forms ) > 0 ) { |
Index: trunk/extensions/SemanticForms/includes/SF_ParserFunctions.php |
— | — | @@ -273,7 +273,7 @@ |
274 | 274 | } |
275 | 275 | } |
276 | 276 | |
277 | | - $fs = SFUtils::getSpecialPage( 'FormStart' ); |
| 277 | + $fs = SpecialPageFactory::getPage( 'FormStart' ); |
278 | 278 | |
279 | 279 | $fs_url = $fs->getTitle()->getLocalURL(); |
280 | 280 | $str = <<<END |
Index: trunk/extensions/SemanticForms/includes/forminputs/SF_TextInput.php |
— | — | @@ -94,7 +94,7 @@ |
95 | 95 | } |
96 | 96 | |
97 | 97 | public static function uploadableHTML( $input_id, $delimiter = null, $default_filename = null, $cur_value = '', $other_args = array() ) { |
98 | | - $upload_window_page = SFUtils::getSpecialPage( 'UploadWindow' ); |
| 98 | + $upload_window_page = SpecialPageFactory::getPage( 'UploadWindow' ); |
99 | 99 | $query_string = "sfInputID=$input_id"; |
100 | 100 | if ( $delimiter != null ) { |
101 | 101 | $query_string .= "&sfDelimiter=$delimiter"; |
Index: trunk/extensions/SemanticForms/includes/SF_Utils.php |
— | — | @@ -543,7 +543,6 @@ |
544 | 544 | * type, for use by both Javascript autocompletion and comboboxes. |
545 | 545 | */ |
546 | 546 | public static function getAutocompleteValues( $source_name, $source_type ) { |
547 | | - |
548 | 547 | if ( $source_name == null ) { |
549 | 548 | return null; |
550 | 549 | } |
— | — | @@ -718,19 +717,6 @@ |
719 | 718 | } |
720 | 719 | |
721 | 720 | /** |
722 | | - * Pre-1.17 compatibility helper function, now probably unnecessary. |
723 | | - * |
724 | | - * @since 2.3.3 |
725 | | - * |
726 | | - * @param string $pageName |
727 | | - * |
728 | | - * @return SpecialPage|null |
729 | | - */ |
730 | | - public static function getSpecialPage( $pageName ) { |
731 | | - return SpecialPageFactory::getPage( $pageName ); |
732 | | - } |
733 | | - |
734 | | - /** |
735 | 721 | * Returns a SQL condition for autocompletion substring value in a column. |
736 | 722 | * @param string $value_column Value column name |
737 | 723 | * @param string $substring Substring to look for |
— | — | @@ -874,7 +860,7 @@ |
875 | 861 | } |
876 | 862 | } |
877 | 863 | |
878 | | - $ad = SFUtils::getSpecialPage( $specialPageName ); |
| 864 | + $ad = SpecialPageFactory::getPage( $specialPageName ); |
879 | 865 | $link_url = $ad->getTitle()->getLocalURL() . "/$inFormName"; |
880 | 866 | if ( ! empty( $inTargetName ) ) { |
881 | 867 | $link_url .= "/$inTargetName"; |