Index: trunk/extensions/UploadWizard/UploadWizardTutorial.php |
— | — | @@ -29,7 +29,7 @@ |
30 | 30 | * @param {String} $langCode language code as used by MediaWiki, similar but not identical to ISO 639-1. |
31 | 31 | * @return {String} html that will display the tutorial. |
32 | 32 | */ |
33 | | - function getHtml() { |
| 33 | + public static function getHtml() { |
34 | 34 | global $wgLang; |
35 | 35 | |
36 | 36 | $error = null; |
— | — | @@ -82,7 +82,7 @@ |
83 | 83 | * @param {String} $langCode: language Code |
84 | 84 | * @return {File|false} |
85 | 85 | */ |
86 | | - function getFile( $langCode ) { |
| 86 | + public static function getFile( $langCode ) { |
87 | 87 | $tutorialName = str_replace( '$1', $langCode, self::NAME_TEMPLATE ); |
88 | 88 | $tutorialTitle = Title::newFromText( $tutorialName, NS_FILE ); |
89 | 89 | return wfFindFile( $tutorialTitle ); |
— | — | @@ -93,7 +93,7 @@ |
94 | 94 | * @param {ThumbnailImage} $thumb |
95 | 95 | * @return {String} HTML representing the image, with clickable helpdesk button |
96 | 96 | */ |
97 | | - function getImageHtml( $thumb ) { |
| 97 | + public static function getImageHtml( $thumb ) { |
98 | 98 | // here we use the not-yet-forgotten HTML imagemap to add a clickable area to the tutorial image. |
99 | 99 | // we could do more special effects with hovers and images and such, not to mention SVG scripting, |
100 | 100 | // but we aren't sure what we want yet... |