r103520 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r103519‎ | r103520 | r103521 >
Date:22:50, 17 November 2011
Author:jeroendedauw
Status:ok
Tags:
Comment:
kill b/c code for <1.18 since the min is 1.18 now
Modified paths:
  • /trunk/extensions/UploadWizard/includes/specials/SpecialUploadCampaign.php (modified) (history)
  • /trunk/extensions/UploadWizard/includes/specials/SpecialUploadCampaigns.php (modified) (history)
  • /trunk/extensions/UploadWizard/includes/specials/SpecialUploadWizard.php (modified) (history)

Diff [purge]

Index: trunk/extensions/UploadWizard/includes/specials/SpecialUploadCampaigns.php
@@ -27,19 +27,6 @@
2828 }
2929
3030 /**
31 - * Get the OutputPage being used for this instance.
32 - * This overrides the getOutput method of Specialpage added in MediaWiki 1.18,
33 - * and returns $wgOut for older versions.
34 - *
35 - * @since 1.2
36 - *
37 - * @return OutputPage
38 - */
39 - public function getOutput() {
40 - return version_compare( $GLOBALS['wgVersion'], '1.18', '>=' ) ? parent::getOutput() : $GLOBALS['wgOut'];
41 - }
42 -
43 - /**
4431 * (non-PHPdoc)
4532 * @see SpecialPage::getDescription()
4633 */
Index: trunk/extensions/UploadWizard/includes/specials/SpecialUploadCampaign.php
@@ -29,19 +29,6 @@
3030 }
3131
3232 /**
33 - * Get the OutputPage being used for this instance.
34 - * This overrides the getOutput method of Specialpage added in MediaWiki 1.18,
35 - * and returns $wgOut for older versions.
36 - *
37 - * @since 1.2
38 - *
39 - * @return OutputPage
40 - */
41 - public function getOutput() {
42 - return version_compare( $GLOBALS['wgVersion'], '1.18', '>=' ) ? parent::getOutput() : $GLOBALS['wgOut'];
43 - }
44 -
45 - /**
4633 * (non-PHPdoc)
4734 * @see SpecialPage::getDescription()
4835 */
Index: trunk/extensions/UploadWizard/includes/specials/SpecialUploadWizard.php
@@ -36,32 +36,6 @@
3737 }
3838
3939 /**
40 - * Get the OutputPage being used for this instance.
41 - * This overrides the getOutput method of Specialpage added in MediaWiki 1.18,
42 - * and returns $wgOut for older versions.
43 - *
44 - * @since 1.2
45 - *
46 - * @return OutputPage
47 - */
48 - public function getOutput() {
49 - return version_compare( $GLOBALS['wgVersion'], '1.18', '>=' ) ? parent::getOutput() : $GLOBALS['wgOut'];
50 - }
51 -
52 - /**
53 - * Shortcut to get user's language.
54 - * This overrides the getLang method of Specialpage added in MediaWiki 1.18,
55 - * and returns $wgLang for older versions.
56 - *
57 - * @since 0.1
58 - *
59 - * @return Language
60 - */
61 - public function getLang() {
62 - return version_compare( $GLOBALS['wgVersion'], '1.18', '>=' ) ? parent::getLang() : $GLOBALS['wgLang'];
63 - }
64 -
65 - /**
6640 * Replaces default execute method
6741 * Checks whether uploading enabled, user permissions okay,
6842 * @param $subPage, e.g. the "foo" in Special:UploadWizard/foo.

Status & tagging log