jenkins-bot has submitted this change and it was merged. Change subject: Remove unused code ......................................................................
Remove unused code Change-Id: Ic72eb3db330e39ff989067cefa7514d7567d3f1a GitHub: https://github.com/wikimedia/mediawiki-extensions-UploadWizard/pull/6 --- M includes/specials/SpecialUploadWizard.php 1 file changed, 0 insertions(+), 40 deletions(-) Approvals: Brion VIBBER: Looks good to me, approved jenkins-bot: Verified diff --git a/includes/specials/SpecialUploadWizard.php b/includes/specials/SpecialUploadWizard.php index 697cdb2..5711e1e 100644 --- a/includes/specials/SpecialUploadWizard.php +++ b/includes/specials/SpecialUploadWizard.php @@ -252,46 +252,6 @@ } /** - * Gets content of the specified page, or false if there is no such page. - * '$1' in $pageName is replaced by the code of the current language. - * - * @since 1.2 - * - * @param string $pageName - * @param boolean $parse - * @param string $langCode - * - * @return string|false - */ - protected function getPageContent( $pageName, $parse = false, $langCode = null ) { - $content = false; - - if ( trim( $pageName ) !== '' ) { - if ( is_null( $langCode ) ) { - $langCode = $this->getLanguage()->getCode(); - } - - $page = Title::newFromText( str_replace( '$1', $langCode, $pageName ) ); - - if ( !is_null( $page ) && $page->exists() ) { - $article = new Article( $page, 0 ); - $content = $article->getContent(); - - if ( $parse ) { - $content = $this->getOutput()->parse( $content ); - } - } - } - - // If no page was found, and the lang is not en, then see if there in an en version. - if ( $content === false && $langCode != 'en' ) { - $content = $this->getPageContent( $pageName, $parse, 'en' ); - } - - return $content; - } - - /** * Check if anyone can upload (or if other sitewide config prevents this) * Side effect: will print error page to wgOut if cannot upload. * @return boolean -- true if can upload -- To view, visit https://gerrit.wikimedia.org/r/73016 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ic72eb3db330e39ff989067cefa7514d7567d3f1a Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/UploadWizard Gerrit-Branch: master Gerrit-Owner: SuchABot <[email protected]> Gerrit-Reviewer: Brion VIBBER <[email protected]> Gerrit-Reviewer: Yuvipanda <[email protected]> Gerrit-Reviewer: jenkins-bot _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
