r75184 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r75183‎ | r75184 | r75185 >
Date:05:11, 22 October 2010
Author:juliano
Status:deferred
Tags:
Comment:
Dropping support for MediaWiki 1.15 and earlier.
Modified paths:
  • /trunk/extensions/Wikilog/README (modified) (history)
  • /trunk/extensions/Wikilog/RELEASE-NOTES (modified) (history)
  • /trunk/extensions/Wikilog/SpecialWikilog.php (modified) (history)
  • /trunk/extensions/Wikilog/TODO (modified) (history)
  • /trunk/extensions/Wikilog/Wikilog.i18n.php (modified) (history)
  • /trunk/extensions/Wikilog/Wikilog.php (modified) (history)
  • /trunk/extensions/Wikilog/WikilogCommentPager.php (modified) (history)
  • /trunk/extensions/Wikilog/WikilogCommentsPage.php (modified) (history)
  • /trunk/extensions/Wikilog/WikilogFeed.php (modified) (history)
  • /trunk/extensions/Wikilog/WikilogHooks.php (modified) (history)
  • /trunk/extensions/Wikilog/WikilogItem.php (modified) (history)
  • /trunk/extensions/Wikilog/WikilogItemPage.php (modified) (history)
  • /trunk/extensions/Wikilog/WikilogItemPager.php (modified) (history)
  • /trunk/extensions/Wikilog/WikilogMainPage.php (modified) (history)
  • /trunk/extensions/Wikilog/WikilogParser.php (modified) (history)
  • /trunk/extensions/Wikilog/WikilogUtils.php (modified) (history)
  • /trunk/extensions/Wikilog/maintenance/wikilogImportDocumentation-pre1.16.php (deleted) (history)
  • /trunk/extensions/Wikilog/maintenance/wikilogImportDocumentation.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Wikilog/WikilogFeed.php
@@ -242,8 +242,8 @@
243243 "too young: age ($age) < timeout ($wgFeedCacheTimeout) " .
244244 "($feedkey; $tsCache; $tsData)\n" );
245245
246 - # NOTE (Mw1.15- COMPAT): OutputPage::setLastModified()
247 - # introduced in Mw1.16. Remove this guard after Wl1.1.
 246+ # NOTE (Mw1.16- COMPAT): OutputPage::setLastModified()
 247+ # introduced in Mw1.17. Remove this guard after Wl1.2.
248248 if ( method_exists( $wgOut, 'setLastModified' ) ) {
249249 $wgOut->setLastModified( $tsCache );
250250 } else {
Index: trunk/extensions/Wikilog/maintenance/wikilogImportDocumentation-pre1.16.php
@@ -1,209 +0,0 @@
2 -<?php
3 -/**
4 - * MediaWiki Wikilog extension
5 - * Copyright © 2008-2010 Juliano F. Ravasi
6 - * http://www.mediawiki.org/wiki/Extension:Wikilog
7 - *
8 - * This program is free software; you can redistribute it and/or modify
9 - * it under the terms of the GNU General Public License as published by
10 - * the Free Software Foundation; either version 2 of the License, or
11 - * (at your option) any later version.
12 - *
13 - * This program is distributed in the hope that it will be useful,
14 - * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 - * GNU General Public License for more details.
17 - *
18 - * You should have received a copy of the GNU General Public License along
19 - * with this program; if not, write to the Free Software Foundation, Inc.,
20 - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 - * http://www.gnu.org/copyleft/gpl.html
22 - */
23 -
24 -/**
25 - * @file
26 - * @ingroup Extensions
27 - * @author Juliano F. Ravasi < dev juliano info >
28 - */
29 -$WIKILOGDIR = dirname( dirname( __FILE__ ) );
30 -$MEDIAWIKIDIR = dirname( dirname( $WIKILOGDIR ) );
31 -
32 -$optionsWithArgs = array();
33 -require_once( "$MEDIAWIKIDIR/maintenance/commandLine.inc" );
34 -require_once( "$MEDIAWIKIDIR/maintenance/rebuildrecentchanges.inc" );
35 -
36 -
37 -/**
38 - * Wikilog documentation importer. Imports the Wikilog extension documentation
39 - * pages and images into the wiki.
40 - */
41 -class WikilogDocImport
42 -{
43 -
44 - protected $mFilename; ///< Import filename.
45 - protected $mFileHandle; ///< Open filename handle.
46 - protected $mDB; ///< Database link object.
47 - protected $mSource; ///< Import source object.
48 - protected $mImporter; ///< WikiImporter object.
49 - protected $mUser; ///< Importer user ("Wikilog auto").
50 - protected $mComment; ///< Comment ("Imported Wikilog doc...").
51 - protected $mTimestamp; ///< Timestamp.
52 -
53 - protected $mOverwriteFiles = false; ///< Whether files should be overwritten.
54 -
55 - protected $mStatPages, $mStatFiles; ///< Statistics.
56 -
57 - /**
58 - * Constructor.
59 - * @param $filename Import filename.
60 - */
61 - public function __construct( $filename ) {
62 - $this->mFilename = $filename;
63 - $this->mFileHandle = fopen( $this->mFilename, 'rb' );
64 - if ( !$this->mFileHandle ) {
65 - throw new MWException( __CLASS__ . ": Failed to open {$this->mFilename}." );
66 - }
67 -
68 - $this->mDB = wfGetDB( DB_MASTER );
69 - $this->mSource = new ImportStreamSource( $this->mFileHandle );
70 - $this->mImporter = new WikiImporter( $this->mSource );
71 -
72 - $this->mUser = User::newFromName( wfMsgForContent( 'wikilog-auto' ), false );
73 - $this->mComment = wfMsgForContent( 'wikilog-doc-import-comment' );
74 - $this->mTimestamp = wfTimestampNow();
75 -
76 - $this->mImporter->setRevisionCallback( array( &$this, 'handleRevision' ) );
77 - }
78 -
79 - /**
80 - * Destructor.
81 - */
82 - public function __destruct() {
83 - fclose( $this->mFileHandle );
84 - }
85 -
86 - /**
87 - * Acessor for the mOverwriteFiles property.
88 - */
89 - public function OverwriteFiles( $x = null ) {
90 - wfSetVar( $this->mOverwriteFiles, $x );
91 - }
92 -
93 - /**
94 - * Perform the documentation import.
95 - */
96 - public function doImport() {
97 - global $wgUser;
98 -
99 - $wgUser = $this->mUser;
100 -
101 - $basefn = wfBasename( $this->mFilename );
102 - echo "+ Importing {$basefn}...\n";
103 -
104 - $this->mStatPages = 0;
105 - $this->mStatFiles = 0;
106 - $this->mImporter->doImport();
107 -
108 - echo " + Done. {$this->mStatPages} page(s) and {$this->mStatFiles} file(s) imported.\n";
109 - }
110 -
111 - /**
112 - * Perform recent changes update.
113 - */
114 - public function updateRecentChanges() {
115 - echo "+ Rebuilding recent changes...\n";
116 - rebuildRecentChangesTable();
117 - echo " + Done.\n";
118 - }
119 -
120 - /**
121 - * Importer revision callback.
122 - */
123 - public function handleRevision( $revision ) {
124 - $title = $revision->getTitle();
125 - $title_text = $title->getPrefixedText();
126 -
127 - if ( $title->getNamespace() == NS_FILE ) {
128 - $base = $title->getDBkey();
129 - echo " + File: '{$base}'...";
130 - $image = wfLocalFile( $title );
131 - if ( !$image->exists() || $this->mOverwriteFiles ) {
132 - echo " uploading...";
133 - $filepath = dirname( $this->mFilename ) . '/' . $base;
134 - $archive = $image->upload( $filepath, $this->mComment,
135 - $revision->getText(), 0, false, $this->mTimeStamp,
136 - $this->mUser);
137 -
138 - if ( WikiError::isError( $archive ) || !$archive->isGood() ) {
139 - echo " failed.\n";
140 - return false;
141 - } else {
142 - echo " success.\n";
143 - $this->mStatFiles++;
144 - return true;
145 - }
146 - } else {
147 - echo " file exists, skipping.\n";
148 - return false;
149 - }
150 - } else {
151 - echo " + Page: '{$title_text}'...\n";
152 - $revision->setUsername( $this->mUser->getName() );
153 - $revision->setComment( $this->mComment );
154 - $revision->setTimestamp( $this->mTimestamp );
155 - $result = $this->mDB->deadlockLoop( array( $revision, 'importOldRevision' ) );
156 -
157 - if ( $result ) { $this->mStatPages++; }
158 - return $result;
159 - }
160 - }
161 -
162 -}
163 -
164 -
165 -/**
166 - * Display a help message for the script.
167 - */
168 -function showHelp() {
169 - echo <<<EOF
170 -Usage: php wikilogImportDocumentation.php [OPTIONS]
171 -Imports the documentation for the Wikilog extension.
172 -
173 -Options:
174 - --overwrite Overwrite existing files.
175 - --help Displays this message and exit.
176 -
177 -EOF;
178 -}
179 -
180 -
181 -# Generic title.
182 -$wgTitle = Title::newFromText( "Wikilog documentation import script" );
183 -$wgDBuser = $wgDBadminuser;
184 -$wgDBpassword = $wgDBadminpassword;
185 -
186 -# --help option: displays help message and exit.
187 -if ( $options['help'] ) {
188 - showHelp();
189 - exit();
190 -}
191 -
192 -# If the wiki is in read-only state, die.
193 -if( wfReadOnly() ) {
194 - wfDie( "Wiki is in read-only mode; you'll need to disable it for import to work.\n" );
195 -}
196 -
197 -# Load extension messages.
198 -wfLoadExtensionMessages( 'Wikilog' );
199 -
200 -# Perform import.
201 -$i = new WikilogDocImport( $wgWikilogDocumentationXML );
202 -
203 -if ( isset( $option['overwrite'] ) ) {
204 - $i->OverwriteFiles( true );
205 -}
206 -
207 -$i->doImport();
208 -$i->updateRecentChanges();
209 -
210 -exit();
Index: trunk/extensions/Wikilog/maintenance/wikilogImportDocumentation.php
@@ -36,8 +36,7 @@
3737
3838 # Compatibility with MediaWiki < 1.16.
3939 if ( !file_exists( "$MEDIAWIKIDIR/maintenance/Maintenance.php" ) ) {
40 - require( 'wikilogImportDocumentation-pre1.16.php' );
41 - exit( 0 );
 40+ die( "MediaWiki 1.16 or later is required." );
4241 }
4342
4443 # Maintenance scripts base class.
Index: trunk/extensions/Wikilog/WikilogItemPager.php
@@ -135,11 +135,7 @@
136136 }
137137
138138 function getNavigationBar() {
139 - # NOTE (Mw1.15- COMPAT): IndexPager::isNavigationBarShown introduced
140 - # in Mw1.16. Remove this guard in Wl1.1.
141 - if ( method_exists( $this, 'isNavigationBarShown' ) ) {
142 - if ( !$this->isNavigationBarShown() ) return '';
143 - }
 139+ if ( !$this->isNavigationBarShown() ) return '';
144140 if ( !isset( $this->mNavigationBar ) ) {
145141 $navbar = new WikilogNavbar( $this, 'chrono-rev' );
146142 $this->mNavigationBar = $navbar->getNavigationBar( $this->mLimit );
@@ -273,9 +269,12 @@
274270 * - 'authors': authors
275271 * - 'tags': tags
276272 * - 'published': empty (draft) or "*" (published)
277 - * - 'pubdate': article publication date
278 - * - 'updated': article last update date
 273+ * - 'date': article publication date
 274+ * - 'time': article publication time
 275+ * - 'updatedDate': article last update date
 276+ * - 'updatedTime': article last update time
279277 * - 'summary': article summary
 278+ * - 'hasMore': empty (summary only) or "*" (has more than summary)
280279 * - 'comments': comments page link
281280 */
282281 class WikilogTemplatePager
@@ -313,10 +312,6 @@
314313 return "</div>\n";
315314 }
316315
317 - /**
318 - * @todo (On or after Wl 1.2.0) Remove {{{pubdate}}} and {{{updated}}}.
319 - * @todo (Req >= Mw 1.16) Remove bug 20431 workaround.
320 - */
321316 function formatRow( $row ) {
322317 global $wgParser, $wgContLang;
323318
@@ -357,10 +352,8 @@
358353 'authors' => $authors,
359354 'tags' => $tags,
360355 'published' => $item->getIsPublished() ? '*' : '',
361 - 'pubdate' => $pubdate, # Deprecated, to be removed on Wl 1.2.0.
362356 'date' => $publishedDate,
363357 'time' => $publishedTime,
364 - 'updated' => $updated, # Deprecated, to be removed on Wl 1.2.0.
365358 'updatedDate' => $updatedDate,
366359 'updatedTime' => $updatedTime,
367360 'summary' => $wgParser->insertStripItem( $summary ),
@@ -369,12 +362,6 @@
370363 );
371364
372365 $frame = $wgParser->getPreprocessor()->newCustomFrame( $vars );
373 -
374 - # XXX: Work around MediaWiki bug 20431
375 - # https://bugzilla.wikimedia.org/show_bug.cgi?id=20431
376 - $frame->title = $frame->parser->mTitle;
377 - $frame->titleCache = array( $frame->title ? $frame->title->getPrefixedDBkey() : false );
378 -
379366 $text = $frame->expand( $this->mTemplate );
380367
381368 return $this->parse( $text );
@@ -438,11 +425,7 @@
439426 }
440427
441428 function getNavigationBar() {
442 - # NOTE (Mw1.15- COMPAT): IndexPager::isNavigationBarShown introduced
443 - # in Mw1.16. Remove this guard in Wl1.1.
444 - if ( method_exists( $this, 'isNavigationBarShown' ) ) {
445 - if ( !$this->isNavigationBarShown() ) return '';
446 - }
 429+ if ( !$this->isNavigationBarShown() ) return '';
447430 if ( !isset( $this->mNavigationBar ) ) {
448431 $navbar = new WikilogNavbar( $this, 'pages' );
449432 $this->mNavigationBar = $navbar->getNavigationBar( $this->mLimit );
Index: trunk/extensions/Wikilog/SpecialWikilog.php
@@ -51,7 +51,6 @@
5252 */
5353 function __construct( ) {
5454 parent::__construct( 'Wikilog' );
55 - wfLoadExtensionMessages( 'Wikilog' );
5655 }
5756
5857 /**
@@ -288,13 +287,13 @@
289288 protected function getHeader( FormOptions $opts ) {
290289 global $wgScript;
291290
292 - $out = Xml::hidden( 'title', $this->getTitle()->getPrefixedText() );
 291+ $out = Html::hidden( 'title', $this->getTitle()->getPrefixedText() );
293292
294293 $out .= self::getQueryForm( $opts );
295294
296295 $unconsumed = $opts->getUnconsumedValues();
297296 foreach ( $unconsumed as $key => $value ) {
298 - $out .= Xml::hidden( $key, $value );
 297+ $out .= Html::hidden( $key, $value );
299298 }
300299
301300 $out = Xml::tags( 'form', array( 'action' => $wgScript ), $out );
Index: trunk/extensions/Wikilog/WikilogMainPage.php
@@ -54,7 +54,6 @@
5555 */
5656 public function __construct( &$title, &$wi ) {
5757 parent::__construct( $title );
58 - wfLoadExtensionMessages( 'Wikilog' );
5958 }
6059
6160 /**
@@ -250,8 +249,8 @@
251250 global $wgScript;
252251
253252 $fields = array();
254 - $fields[] = Xml::hidden( 'title', $this->mTitle->getPrefixedText() );
255 - $fields[] = Xml::hidden( 'action', 'wikilog' );
 253+ $fields[] = Html::hidden( 'title', $this->mTitle->getPrefixedText() );
 254+ $fields[] = Html::hidden( 'action', 'wikilog' );
256255 $fields[] = Xml::inputLabel( wfMsg( 'wikilog-item-name' ),
257256 'wlItemName', 'wl-item-name', 50 );
258257 $fields[] = Xml::submitButton( wfMsg( 'wikilog-new-item-go' ),
Index: trunk/extensions/Wikilog/WikilogCommentPager.php
@@ -148,11 +148,7 @@
149149 }
150150
151151 function getNavigationBar() {
152 - # NOTE (Mw1.15- COMPAT): IndexPager::isNavigationBarShown introduced
153 - # in Mw1.16. Remove this guard in Wl1.1.
154 - if ( method_exists( $this, 'isNavigationBarShown' ) ) {
155 - if ( !$this->isNavigationBarShown() ) return '';
156 - }
 152+ if ( !$this->isNavigationBarShown() ) return '';
157153 if ( !isset( $this->mNavigationBar ) ) {
158154 $navbar = new WikilogNavbar( $this );
159155 $this->mNavigationBar = $navbar->getNavigationBar( $this->mLimit );
Index: trunk/extensions/Wikilog/WikilogItemPage.php
@@ -50,7 +50,6 @@
5151 */
5252 function __construct( &$title, &$wi ) {
5353 parent::__construct( $title );
54 - wfLoadExtensionMessages( 'Wikilog' );
5554 $this->mItem = WikilogItem::newFromInfo( $wi );
5655 }
5756
Index: trunk/extensions/Wikilog/Wikilog.php
@@ -158,12 +158,6 @@
159159 $wgHooks['GetLocalURL'][] = 'WikilogParser::GetLocalURL';
160160 $wgHooks['GetFullURL'][] = 'WikilogParser::GetFullURL';
161161
162 -if ( !defined( 'MW_SUPPORTS_LOCALISATIONCACHE' ) ) {
163 - /* pre Mw1.16 compatibility */
164 - $wgHooks['LanguageGetMagic'][] = 'WikilogHooks::LanguageGetMagic';
165 - $wgHooks['LanguageGetSpecialPageAliases'][] = 'WikilogHooks::LanguageGetSpecialPageAliases';
166 -}
167 -
168162 /*
169163 * Added rights.
170164 */
Index: trunk/extensions/Wikilog/README
@@ -33,7 +33,7 @@
3434
3535 == Requirements ==
3636
37 -* MediaWiki 1.15 or higher.
 37+* MediaWiki 1.16 or higher.
3838 * A MySQL database backend.
3939
4040 == Installation ==
Index: trunk/extensions/Wikilog/WikilogCommentsPage.php
@@ -78,7 +78,6 @@
7979 global $wgUser, $wgRequest;
8080
8181 parent::__construct( $title );
82 - wfLoadExtensionMessages( 'Wikilog' );
8382
8483 # Check if user can post.
8584 $this->mUserCanPost = $wgUser->isAllowed( 'wl-postcomment' ) ||
@@ -320,10 +319,10 @@
321320 }
322321
323322 $form =
324 - Xml::hidden( 'title', $this->getTitle()->getPrefixedText() ) .
325 - Xml::hidden( 'action', 'wikilog' ) .
326 - Xml::hidden( 'wpEditToken', $wgUser->editToken() ) .
327 - ( $parent ? Xml::hidden( 'wlParent', $parent->mID ) : '' );
 323+ Html::hidden( 'title', $this->getTitle()->getPrefixedText() ) .
 324+ Html::hidden( 'action', 'wikilog' ) .
 325+ Html::hidden( 'wpEditToken', $wgUser->editToken() ) .
 326+ ( $parent ? Html::hidden( 'wlParent', $parent->mID ) : '' );
328327
329328 $fields = array();
330329
@@ -370,7 +369,7 @@
371370 $form .= WikilogUtils::buildForm( $fields );
372371
373372 foreach ( $opts->getUnconsumedValues() as $key => $value ) {
374 - $form .= Xml::hidden( $key, $value );
 373+ $form .= Html::hidden( $key, $value );
375374 }
376375
377376 $form = Xml::tags( 'form', array(
Index: trunk/extensions/Wikilog/WikilogHooks.php
@@ -249,35 +249,6 @@
250250 }
251251
252252 /**
253 - * LanguageGetSpecialPageAliases hook handler function.
254 - * Adds language aliases for special pages.
255 - * @note Deprecated in MediaWiki 1.16.
256 - * @todo Remove this in Wikilog 1.1.0, along with support for Mw < 1.16.
257 - */
258 - static function LanguageGetSpecialPageAliases( &$specialPageAliases, $lang ) {
259 - wfLoadExtensionMessages( 'Wikilog' );
260 - $title = Title::newFromText( wfMsg( 'wikilog-specialwikilog' ) );
261 - $specialPageAliases['SpecialWikilog'][] = $title->getDBKey();
262 - return true;
263 - }
264 -
265 - /**
266 - * LanguageGetMagic hook handler function.
267 - * Adds language aliases for magic words.
268 - * @note Deprecated in MediaWiki 1.16.
269 - * @todo Remove this in Wikilog 1.1.0, along with support for Mw < 1.16.
270 - */
271 - static function LanguageGetMagic( &$words, $lang ) {
272 - require( 'Wikilog.i18n.magic.php' );
273 - if ( $lang == 'en' || !isset( $magicWords[$lang] ) ) {
274 - $words += $magicWords['en'];
275 - } else {
276 - $words += array_merge( $magicWords['en'], $magicWords[$lang] );
277 - }
278 - return true;
279 - }
280 -
281 - /**
282253 * EditPage::showEditForm:fields hook handler function.
283254 * Adds wikilog article options to edit pages.
284255 */
@@ -333,16 +304,8 @@
334305 /**
335306 * EditPage::attemptSave hook handler function.
336307 * Check edit page options.
337 - * @todo Remove $editpage->wlSignpub hack in Wikilog 1.1.0, along with
338 - * support for Mw < 1.16.
339308 */
340309 static function EditPageAttemptSave( $editpage ) {
341 - # HACK: For Mw < 1.16, due to the lack of 'EditPage::importFormData' hook.
342 - if ( !isset( $editpage->wlSignpub ) ) {
343 - global $wgRequest;
344 - $editpage->wlSignpub = $wgRequest->getCheck( 'wlSignpub' );
345 - }
346 -
347310 $options = array(
348311 'signpub' => $editpage->wlSignpub
349312 );
Index: trunk/extensions/Wikilog/TODO
@@ -1,27 +1,10 @@
22 == Wikilog To-do list ==
33
4 -=== Wikilog 1.2.0. ===
 4+=== Wikilog 1.3.0. ===
55
6 -* Drop support for Mw1.15 and earlier.
7 -* Remove Mw1.15 compatibility boilerplate in:
8 - - WikilogNavbar::getNavigationBar() (Language::getDir()).
9 - - WikilogSummaryPager::getNavigationBar() (IndexPager::isNavigationBarShown()).
10 - - WikilogArchivesPager::getNavigationBar() (IndexPager::isNavigationBarShown()).
11 - - WikilogCommentPager::getNavigationBar() (IndexPager::isNavigationBarShown()).
12 - - WikilogHooks::LanguageGetSpecialPageAliases().
13 - - WikilogHooks::LanguageGetMagic().
14 - - WikilogHooks::EditPageAttemptSave().
15 - - WikilogTemplatePager::formatRow() (workaround bug 20431).
16 - - WikilogFeed::loadFromCache() (bug 21916).
17 - - Wikilog.i18n.php: 'wikilog-specialwikilog' message.
18 -* WikilogTemplatePager::formatRow(): Remove {{{pubdate}}} and {{{updated}}}.
19 -* Remove wfLoadExtensionMessages() calls.
20 -* Replace Xml::hidden() calls with Html::hidden().
21 -
22 -=== Wikilog 1.3.0.
23 -
24 -* Drop support for Mw1.16 and earlier.
 6+* Drop support for Mw 1.16 and earlier.
257 * Remove Mw1.16 compatibility boilerplate in:
 8+ - WikilogFeed::loadFromCache() (bug 21916).
269 - WikilogComment::getCommentArticleTitle() (GAID_FOR_UPDATE).
2710 - WikilogCommentsPage::setCommentApproval() (GAID_FOR_UPDATE).
2811 * Remove deprecated WikilogParserCache:
Index: trunk/extensions/Wikilog/RELEASE-NOTES
@@ -4,6 +4,9 @@
55
66 === General notes ===
77
 8+MediaWiki requirement raised to 1.16.0 and later. MediaWiki 1.15 and earlier
 9+are no longer supported in this release.
 10+
811 === New configuration options ===
912
1013 === New features ===
Index: trunk/extensions/Wikilog/WikilogParser.php
@@ -217,7 +217,6 @@
218218 */
219219 public static function settings( &$parser /* ... */ ) {
220220 global $wgOut;
221 - wfLoadExtensionMessages( 'Wikilog' );
222221 self::checkNamespace( $parser );
223222
224223 $mwIcon =& MagicWord::get( 'wlk-icon' );
@@ -258,7 +257,6 @@
259258 * {{wl-publish:...}} parser function handler.
260259 */
261260 public static function publish( &$parser, $pubdate /*, $author... */ ) {
262 - wfLoadExtensionMessages( 'Wikilog' );
263261 self::checkNamespace( $parser );
264262
265263 $parser->mExtWikilog->mPublish = true;
@@ -291,7 +289,6 @@
292290 * {{wl-author:...}} parser function handler.
293291 */
294292 public static function author( &$parser /*, $author... */ ) {
295 - wfLoadExtensionMessages( 'Wikilog' );
296293 self::checkNamespace( $parser );
297294
298295 $args = array_slice( func_get_args(), 1 );
@@ -306,7 +303,6 @@
307304 * {{wl-tags:...}} parser function handler.
308305 */
309306 public static function tags( &$parser /*, $tag... */ ) {
310 - wfLoadExtensionMessages( 'Wikilog' );
311307 self::checkNamespace( $parser );
312308
313309 $args = array_slice( func_get_args(), 1 );
Index: trunk/extensions/Wikilog/Wikilog.i18n.php
@@ -21,7 +21,6 @@
2222
2323 # Special:Wikilog
2424 'wikilog-specialwikilog-title' => 'Wikilogs', # Page title
25 - 'wikilog-specialwikilog' => 'Wikilog', # Special page name (DEPRECATED AFTER MW1.16)
2625
2726 # Logs
2827 'wikilog-log-pagename' => 'Wikilog actions log',
@@ -216,7 +215,6 @@
217216 If these words are the same in your language, then just transliterate it;
218217 otherwise use the proper translation for both words and try to keep the idea of something that ties both concepts into a single object.
219218 It is used in the plural in this title.',
220 - 'wikilog-specialwikilog' => 'This is a special page name',
221219 'wikilog-log-cmt-approve' => 'Log action message used for entries describing comments approved by moderators, as in someone "did that". Similar to {{msg-mw|deletedarticle}} and {{msg-mw|protectedarticle}}.
222220 Parameters:
223221 * $1 is the page title of the approved comment.',
@@ -393,7 +391,6 @@
394392 $messages['af'] = array(
395393 'wikilog-help' => '{{ns:help}}:Wikilog',
396394 'wikilog-specialwikilog-title' => 'Wikilogs',
397 - 'wikilog-specialwikilog' => 'Wikilog',
398395 'wikilog-log-pagename' => 'Wikilog-aksieslogboek',
399396 'wikilog-log-pagetext' => "Hieronder is 'n lys van wikilog aksies:",
400397 'wikilog-log-cmt-approve' => 'het kommentaar [[$1]] goedgekeur',
@@ -487,7 +484,6 @@
488485 'right-wl-postcomment' => 'Komentet Mesazhe të wikilog artikuj',
489486 'right-wl-moderation' => 'Moderim i wikilog komente neni',
490487 'wikilog-specialwikilog-title' => 'Wikilogs',
491 - 'wikilog-specialwikilog' => 'Wikilog',
492488 'wikilog-log-pagename' => 'veprimet Wikilog log',
493489 'wikilog-log-pagetext' => 'Më poshtë është një listë e wikilog veprime.',
494490 'wikilog-log-cmt-approve' => 'Komenti i miratuar "[[$1]]"',
@@ -627,7 +623,6 @@
628624 'right-wl-postcomment' => 'كتابة تعليقات على مقالات سجل الويكي',
629625 'right-wl-moderation' => 'مراجعة تعليقات مقالات سجل الويكي',
630626 'wikilog-specialwikilog-title' => 'سجلات الويكي',
631 - 'wikilog-specialwikilog' => 'سجل الويكي',
632627 'wikilog-log-pagename' => 'سجل أفعال سجل الويكي',
633628 'wikilog-log-pagetext' => 'بالأسفل قائمة بأفعال سجل الويكي.',
634629 'wikilog-log-cmt-approve' => 'وافق على التعليق "[[$1]]"',
@@ -754,7 +749,6 @@
755750 'right-wl-postcomment' => 'كتابه تعليقات على مقالات سجل الويكي',
756751 'right-wl-moderation' => 'مراجعه تعليقات مقالات سجل الويكي',
757752 'wikilog-specialwikilog-title' => 'سجلات الويكي',
758 - 'wikilog-specialwikilog' => 'سجل الويكي',
759753 'wikilog-log-pagename' => 'سجل أفعال سجل الويكي',
760754 'wikilog-log-pagetext' => 'بالأسفل قائمه بأفعال سجل الويكى.',
761755 'wikilog-log-cmt-approve' => 'وافق على التعليق "[[$1]]"',
@@ -892,7 +886,6 @@
893887 'right-wl-postcomment' => 'пакідаць камэнтары ў артыкулах вікі-блогу',
894888 'right-wl-moderation' => 'мадэрацыя камэнтараў да артыкулаў вікі-блогу',
895889 'wikilog-specialwikilog-title' => 'Вікі-блогі',
896 - 'wikilog-specialwikilog' => 'Вікі-блог',
897890 'wikilog-log-pagename' => 'Журнал дзеяньняў вікі-блогу',
898891 'wikilog-log-pagetext' => 'Ніжэй пададзены сьпіс дзеяньняў вікі-блогу.',
899892 'wikilog-log-cmt-approve' => 'зацьверджаны камэнтар [[$1]]',
@@ -1031,7 +1024,6 @@
10321025 'right-wl-postcomment' => 'Оставяне на коментари към статии от уикиблога',
10331026 'right-wl-moderation' => 'Модериране на коментарите към статии в уикилога',
10341027 'wikilog-specialwikilog-title' => 'Уикилогове',
1035 - 'wikilog-specialwikilog' => 'Уикилог',
10361028 'wikilog-log-pagename' => 'Дневник на действията в уикиблога',
10371029 'wikilog-log-pagetext' => 'По-долу е списъкът от действията по уикиблога.',
10381030 'wikilog-log-cmt-approve' => 'одобрен коментар "[[$1]]"',
@@ -1149,7 +1141,6 @@
11501142 */
11511143 $messages['bn'] = array(
11521144 'wikilog-specialwikilog-title' => 'উইকিলগসমূহ',
1153 - 'wikilog-specialwikilog' => 'উইকিলগ',
11541145 'wikilog-tab' => 'উইকিলগ',
11551146 'wikilog-new-item-go' => 'তৈরি',
11561147 'wikilog-item-name' => 'নিবন্ধের নাম:',
@@ -1195,7 +1186,6 @@
11961187 'right-wl-postcomment' => 'Postañ addisplegoù da bennadoù wikilog',
11971188 'right-wl-moderation' => 'Habaskaat an evezhiadennoù evit pennadoù wikilog',
11981189 'wikilog-specialwikilog-title' => 'Wikilogoù',
1199 - 'wikilog-specialwikilog' => 'Wikilog',
12001190 'wikilog-log-pagename' => 'Marilh an oberoù war wikilog',
12011191 'wikilog-log-pagetext' => 'Dindan e kavot ur roll eus an oberoù war wikilog.',
12021192 'wikilog-log-cmt-approve' => 'addispleg aprouet [[$1]]',
@@ -1333,7 +1323,6 @@
13341324 'right-wl-postcomment' => 'Slanje komentara na članke wikizapisnika',
13351325 'right-wl-moderation' => 'Moderiranje komentara na članke wikizapisnika',
13361326 'wikilog-specialwikilog-title' => 'Wikizapisnici',
1337 - 'wikilog-specialwikilog' => 'Wikizapisnik',
13381327 'wikilog-log-pagename' => 'Zapisnik Wikilog akcija',
13391328 'wikilog-log-pagetext' => 'Ispod je spisak akcija wikizapisnika.',
13401329 'wikilog-log-cmt-approve' => 'odobreni komentar "[[$1]]"',
@@ -1425,7 +1414,6 @@
14261415 */
14271416 $messages['ca'] = array(
14281417 'wikilog-specialwikilog-title' => 'Wikilogs',
1429 - 'wikilog-specialwikilog' => 'Wikilog',
14301418 'wikilog-tab' => 'Wikilog',
14311419 'wikilog-tab-title' => 'Accions de Wikilog',
14321420 'wikilog-information' => 'Informació de Wikilog',
@@ -1504,7 +1492,6 @@
15051493 'right-wl-postcomment' => 'Posílání komentářů k wikilog článkům',
15061494 'right-wl-moderation' => 'Moderování komentářů wikilog článků',
15071495 'wikilog-specialwikilog-title' => 'Wikilogs',
1508 - 'wikilog-specialwikilog' => 'Wikilog',
15091496 'wikilog-log-pagename' => 'Záznam událostí wikilog',
15101497 'wikilog-log-pagetext' => 'Níže je seznam událostí wikilog',
15111498 'wikilog-log-cmt-approve' => 'schvaluje komentář k článku „[[$1]]“',
@@ -1726,7 +1713,6 @@
17271714 'right-wl-postcomment' => 'Kommentare zu Wikilog-Beiträgen posten',
17281715 'right-wl-moderation' => 'Moderation von Kommentaren zu Wikilog-Beiträgen',
17291716 'wikilog-specialwikilog-title' => 'Wikilogs',
1730 - 'wikilog-specialwikilog' => 'Wikilog',
17311717 'wikilog-log-pagename' => 'Wikilog-Aktionslogbuch',
17321718 'wikilog-log-pagetext' => 'Unten folgt eine Liste von Wikilog-Aktionen.',
17331719 'wikilog-log-cmt-approve' => 'gab den Kommentar „[[$1]]“ frei',
@@ -1880,7 +1866,6 @@
18811867 'right-wl-postcomment' => 'Komentary k wikilogowym pśinoskam pósłaś',
18821868 'right-wl-moderation' => 'Moderacija komentarow k wikilogowym pśinoskam',
18831869 'wikilog-specialwikilog-title' => 'Wikilogi',
1884 - 'wikilog-specialwikilog' => 'Wikilog',
18851870 'wikilog-log-pagename' => 'Protokol wikilogowych akcijow',
18861871 'wikilog-log-pagetext' => 'Dołojce jo lisćina wikilogowych akcijow.',
18871872 'wikilog-log-cmt-approve' => 'pśizwólony komentar [[$1]]',
@@ -2025,7 +2010,6 @@
20262011 $messages['el'] = array(
20272012 'wikilog-help' => '{{ns:Help}}:Βικιαρχείο',
20282013 'wikilog-specialwikilog-title' => 'Βικιαρχεία',
2029 - 'wikilog-specialwikilog' => 'Βικιαρχείο',
20302014 'wikilog-log-pagename' => 'Αρχείο δραστηριοτήτων Βικιαρχείου',
20312015 'wikilog-log-pagetext' => 'Παρακάτω είναι μια λίστα δραστηριοτήτων του βικιαρχείου.',
20322016 'wikilog-log-cmt-approve' => 'ενέκρινε το σχόλιο "[[$1]]"',
@@ -2130,7 +2114,6 @@
21312115 'wikilog-help' => '{{ns:Help}}:Vikiblogo',
21322116 'right-wl-moderation' => 'Administri komentojn en Vikiblog-artikoloj',
21332117 'wikilog-specialwikilog-title' => 'Vikiblogoj',
2134 - 'wikilog-specialwikilog' => 'Vikiblogo',
21352118 'wikilog-log-pagename' => 'Protokolo de Vikiblog-agoj',
21362119 'wikilog-log-pagetext' => 'Jen listo de Vikiblog-agoj.',
21372120 'wikilog-log-cmt-approve' => 'aprobis komenton "[[$1]]"',
@@ -2236,7 +2219,6 @@
22372220 'right-wl-postcomment' => 'Publicar comentarios en artículos del Wikilog',
22382221 'right-wl-moderation' => 'Moderación de comentarios de artículos de wikilog',
22392222 'wikilog-specialwikilog-title' => 'Wikilogs',
2240 - 'wikilog-specialwikilog' => 'Wikilog',
22412223 'wikilog-log-pagename' => 'Registro de acciones de Wikilog',
22422224 'wikilog-log-pagetext' => 'A continuación hay un listado de acciones de Wikilog.',
22432225 'wikilog-log-cmt-approve' => 'comentario aprobado [[$1]]',
@@ -2469,7 +2451,6 @@
24702452 'right-wl-postcomment' => 'Lähettää kommentteja wikilog-artikkeleihin',
24712453 'right-wl-moderation' => 'Moderoida wikilog-artikkeleiden kommentteja',
24722454 'wikilog-specialwikilog-title' => 'Wikilogit',
2473 - 'wikilog-specialwikilog' => 'Wikilog',
24742455 'wikilog-log-pagename' => 'Wikilog-toimintoloki',
24752456 'wikilog-log-pagetext' => 'Alla on lista wikilog-toiminnoista.',
24762457 'wikilog-log-cmt-approve' => 'hyväksytty kommentti ”[[$1]]”',
@@ -2603,7 +2584,6 @@
26042585 'right-wl-postcomment' => 'Poster des commentaires sur les articles de wikilog',
26052586 'right-wl-moderation' => 'Modération des commentaires sur les articles de wikilog',
26062587 'wikilog-specialwikilog-title' => 'Wikilogs',
2607 - 'wikilog-specialwikilog' => 'Wikilog',
26082588 'wikilog-log-pagename' => 'Journal des actions sur wikilog',
26092589 'wikilog-log-pagetext' => 'Ci-dessous se trouve une liste des actions sur wikilog.',
26102590 'wikilog-log-cmt-approve' => 'commentaire approuvé [[$1]]',
@@ -2740,7 +2720,6 @@
27412721 'right-wl-postcomment' => 'Postar des comentèros sur los articllos de Wikilog',
27422722 'right-wl-moderation' => 'Moderacion des comentèros sur los articllos de Wikilog',
27432723 'wikilog-specialwikilog-title' => 'Wikilogs',
2744 - 'wikilog-specialwikilog' => 'Wikilog',
27452724 'wikilog-log-pagename' => 'Jornal de les accions dessus Wikilog',
27462725 'wikilog-log-pagetext' => 'Ce-desot sè trove una lista de les accions dessus Wikilog.',
27472726 'wikilog-log-cmt-approve' => 'comentèro aprovâ « [[$1]] »',
@@ -2859,7 +2838,6 @@
28602839 'right-wl-postcomment' => 'Publicar comentarios nos artigos do wikilog',
28612840 'right-wl-moderation' => 'Moderar os comentarios dos artigos do wikilog',
28622841 'wikilog-specialwikilog-title' => 'Wikilogs',
2863 - 'wikilog-specialwikilog' => 'Wikilog',
28642842 'wikilog-log-pagename' => 'Rexistro de accións no wikilog',
28652843 'wikilog-log-pagetext' => 'A continuación está a lista das accións realizadas no wikilog.',
28662844 'wikilog-log-cmt-approve' => 'aprobou o comentario [[$1]]',
@@ -3016,7 +2994,6 @@
30172995 'right-wl-postcomment' => 'Kommentar zue Wikilog-Byytreg poschte',
30182996 'right-wl-moderation' => 'Moderation vu Kommentar zue Wikilog-Byytreg',
30192997 'wikilog-specialwikilog-title' => 'Wikilogs',
3020 - 'wikilog-specialwikilog' => 'Wikilog',
30212998 'wikilog-log-pagename' => 'Wikilog-Aktionslogbuech',
30222999 'wikilog-log-pagetext' => 'Unte het s e Lischt mit Wikilog-Aktione.',
30233000 'wikilog-log-cmt-approve' => 'het dr Kommentar [[$1]] prieft',
@@ -3301,7 +3278,6 @@
33023279 'right-wl-postcomment' => 'Komentary k přinoškam Wikilog pósłać',
33033280 'right-wl-moderation' => 'Moderacija komentarow k přinoškam Wikilog',
33043281 'wikilog-specialwikilog-title' => 'Wikiprotokole',
3305 - 'wikilog-specialwikilog' => 'Wikilog',
33063282 'wikilog-log-pagename' => 'Protokol akcijow Wikiloga',
33073283 'wikilog-log-pagetext' => 'Deleka je lisćina wikilogowych akcijow.',
33083284 'wikilog-log-cmt-approve' => 'schawli komentar [[$1]]',
@@ -3439,7 +3415,6 @@
34403416 'right-wl-postcomment' => 'Hozzászólások írása a wikinapló bejegyzésekhez',
34413417 'right-wl-moderation' => 'wikinapló bejegyzés hozzászólásainak moderálása',
34423418 'wikilog-specialwikilog-title' => 'Wikinaplók',
3443 - 'wikilog-specialwikilog' => 'Wikinapló',
34443419 'wikilog-log-pagename' => 'Wikinapló-műveletek naplója',
34453420 'wikilog-log-pagetext' => 'Alább látható a wikinaplón végzett műveletek listája.',
34463421 'wikilog-log-cmt-approve' => 'jóváhagyta a következő hozzászólást: [[$1]]',
@@ -3563,7 +3538,6 @@
35643539 'right-wl-postcomment' => 'Lassar commentos in articulos wikilog',
35653540 'right-wl-moderation' => 'Moderation de commentos de articulos wikilog',
35663541 'wikilog-specialwikilog-title' => 'Wikilogs',
3567 - 'wikilog-specialwikilog' => 'Wikilog',
35683542 'wikilog-log-pagename' => 'Registro de actiones wikilog',
35693543 'wikilog-log-pagetext' => 'Seque un lista de actiones wikilog.',
35703544 'wikilog-log-cmt-approve' => 'approbava le commento [[$1]]',
@@ -3702,7 +3676,6 @@
37033677 'right-wl-postcomment' => 'Mengirim komentar untuk artikel wikilog',
37043678 'right-wl-moderation' => 'Memoderasi komentar artikel wikilog',
37053679 'wikilog-specialwikilog-title' => 'Wikilog',
3706 - 'wikilog-specialwikilog' => 'Wikilog',
37073680 'wikilog-log-pagename' => 'Log tindakan wikilog',
37083681 'wikilog-log-pagetext' => 'Berikut adalah daftar tindakan wikilog.',
37093682 'wikilog-log-cmt-approve' => 'komentar disetujui [[$1]]',
@@ -3865,7 +3838,6 @@
38663839 'right-wl-postcomment' => 'Scrivi un commento ad articoli wikilog',
38673840 'right-wl-moderation' => 'Moderazione di commenti ad articoli wikilog',
38683841 'wikilog-specialwikilog-title' => 'Wikilogs',
3869 - 'wikilog-specialwikilog' => 'Wikilog',
38703842 'wikilog-log-pagename' => 'Registro delle azioni Wikilog',
38713843 'wikilog-log-pagetext' => 'Di seguito è riportato un elenco di azioni wikilog.',
38723844 'wikilog-log-cmt-approve' => 'commento autorizzato "[[$1]]"',
@@ -4001,7 +3973,6 @@
40023974 'right-wl-postcomment' => 'ウィキログの記事にコメントを投稿する',
40033975 'right-wl-moderation' => 'ウィキログ記事のコメントのモデレーション',
40043976 'wikilog-specialwikilog-title' => 'ウィキログ',
4005 - 'wikilog-specialwikilog' => 'ウィキログ',
40063977 'wikilog-log-pagename' => 'ウィキログ操作記録',
40073978 'wikilog-log-pagetext' => '以下にウィキログの操作の一覧を示します。',
40083979 'wikilog-log-cmt-approve' => '承認済みコメント [[$1]]',
@@ -4178,7 +4149,6 @@
41794150 'right-wl-postcomment' => 'Aanmärkunge zoh Atikelle vum {{int:Wikilog-wikilog}} afjävve',
41804151 'right-wl-moderation' => 'De Aanmörkunge zoh Atikelle vum {{int:Wikilog-wikilog}} modderiere',
41814152 'wikilog-specialwikilog-title' => '{{int:Wikilog-wikilog}} Blogs',
4182 - 'wikilog-specialwikilog' => '{{int:Wikilog-wikilog}}',
41834153 'wikilog-log-pagename' => 'et Logboch met dem {{int:Wikilog-wikilog}} singe Akßjuhne',
41844154 'wikilog-log-pagetext' => 'Heh dronger kütt en Leß met dem {{int:Wikilog-wikilog}} sing Akßjuhne.',
41854155 'wikilog-log-cmt-approve' => 'hät di Aanmärkung [[$1]] zohjelohße',
@@ -4301,7 +4271,6 @@
43024272 'wikilog-auto' => 'Wikilog Auto',
43034273 'wikilog-help' => '{{ns:Help}}:Wikilog',
43044274 'wikilog-specialwikilog-title' => 'Wikilogs',
4305 - 'wikilog-specialwikilog' => 'Wikilog',
43064275 'wikilog-log-cmt-approve' => 'approuvéiert Bemierkung [[$1]]',
43074276 'wikilog-log-cmt-reject' => 'refuséiert Bemierkung [[$1]]',
43084277 'wikilog-tab' => 'Wikilog',
@@ -4461,7 +4430,6 @@
44624431 */
44634432 $messages['mg'] = array(
44644433 'wikilog-specialwikilog-title' => "Tatitr'asa wiki",
4465 - 'wikilog-specialwikilog' => "Tatitr'asa wiki",
44664434 'wikilog-log-pagename' => "Tatitr'asa momban'ny tao eo amin'ny Tatitr'asa wiki",
44674435 'wikilog-log-pagetext' => "Eo ambany misy lisitry ny tao eo amin'ny wikilog",
44684436 'wikilog-new-item-go' => 'Amboary',
@@ -4511,7 +4479,6 @@
45124480 'right-wl-postcomment' => 'Оставање коментари на статии во викидневникот',
45134481 'right-wl-moderation' => 'Модерирање на коментарите на статиите во викидневникот',
45144482 'wikilog-specialwikilog-title' => 'Викидневници',
4515 - 'wikilog-specialwikilog' => 'Викидневник',
45164483 'wikilog-log-pagename' => 'Дневник на дејствата на викидневникот',
45174484 'wikilog-log-pagetext' => 'Подолу е наведен список на дејства на викидневникот.',
45184485 'wikilog-log-cmt-approve' => 'го одобри коментарот „[[$1]]“',
@@ -4679,7 +4646,6 @@
46804647 'right-wl-postcomment' => 'Letakkan ulasan pada rencana wikilog',
46814648 'right-wl-moderation' => 'Moderasi ulasan rencana wikilog',
46824649 'wikilog-specialwikilog-title' => 'Wikilog',
4683 - 'wikilog-specialwikilog' => 'Wikilog',
46844650 'wikilog-log-pagename' => 'Log tindakan Wikilog',
46854651 'wikilog-log-pagetext' => 'Di bawah adalah senarai tindakan wikilog.',
46864652 'wikilog-log-cmt-approve' => 'Ulasan diluluskan "[[$1]]"',
@@ -4707,7 +4673,6 @@
47084674 'right-wl-postcomment' => 'Reacties op wikilog-artikelen plaatsen',
47094675 'right-wl-moderation' => 'Wikilog-artikelreacties modereren',
47104676 'wikilog-specialwikilog-title' => 'Wikilogs',
4711 - 'wikilog-specialwikilog' => 'Wikilog',
47124677 'wikilog-log-pagename' => 'Wikiloghandelingenlogboek',
47134678 'wikilog-log-pagetext' => 'Hieronder treft u een lijst van Wikilog-handelingen aan.',
47144679 'wikilog-log-cmt-approve' => 'heeft reactie [[$1]] goedgekeurd',
@@ -4842,7 +4807,6 @@
48434808 $messages['nn'] = array(
48444809 'wikilog-desc' => 'Legg til bloggfunksjonar, og lagar ei wiki-blogg hybridoppsett',
48454810 'right-wl-postcomment' => 'Skriv kommentarar til wikilog-artiklar',
4846 - 'wikilog-specialwikilog' => 'Wikilogg',
48474811 'wikilog-log-pagename' => 'Wikilog for hendingar',
48484812 'wikilog-tab' => 'Wikilogg',
48494813 'wikilog-new-item-go' => 'Lag',
@@ -4909,7 +4873,6 @@
49104874 'right-wl-postcomment' => 'Skriv kommentarer til wikilog-artikler',
49114875 'right-wl-moderation' => 'Moderering av wikilogg-artikkelkommentarer',
49124876 'wikilog-specialwikilog-title' => 'Wikilogger',
4913 - 'wikilog-specialwikilog' => 'Wikilogg',
49144877 'wikilog-log-pagename' => 'Wikilog handlingslogg',
49154878 'wikilog-log-pagetext' => 'Under er en liste over wikilogghandliger.',
49164879 'wikilog-log-cmt-approve' => 'godkjent kommentar «[[$1]]»',
@@ -5046,7 +5009,6 @@
50475010 'right-wl-postcomment' => 'Postar de comentaris suls articles de wikilog',
50485011 'right-wl-moderation' => 'Moderacion dels comentaris suls articles de wikilog',
50495012 'wikilog-specialwikilog-title' => 'Wikilogs',
5050 - 'wikilog-specialwikilog' => 'Wikilog',
50515013 'wikilog-log-pagename' => 'Jornal de las accions sus wikilog',
50525014 'wikilog-log-pagetext' => 'Çaijós se tròba una lista de las accions sus wikilog.',
50535015 'wikilog-log-cmt-approve' => 'comentari aprovat [[$1]]',
@@ -5204,7 +5166,6 @@
52055167 'right-wl-postcomment' => 'Dodawanie komentarzy do wikirejestru artykułów',
52065168 'right-wl-moderation' => 'Zarządzanie komentarzami wikirejestru artykułów',
52075169 'wikilog-specialwikilog-title' => 'Wikiblogi',
5208 - 'wikilog-specialwikilog' => 'Wikiblog',
52095170 'wikilog-log-pagename' => 'Rejestr wikiblogu',
52105171 'wikilog-log-pagetext' => 'Poniżej znajduje się spis czynności podejmowanych dla wikiblogu.',
52115172 'wikilog-log-cmt-approve' => 'zatwierdził komentarz „[[$1]]”',
@@ -5344,7 +5305,6 @@
53455306 'right-wl-postcomment' => "Gionté dij coment an sj'artìcoj ëd wikilog",
53465307 'right-wl-moderation' => "Moderassion dij coment an sj'artìcoj ëd wikilog",
53475308 'wikilog-specialwikilog-title' => 'Wikilogs',
5348 - 'wikilog-specialwikilog' => 'Wikilog',
53495309 'wikilog-log-pagename' => "Argistr ëd j'assion su wikilog",
53505310 'wikilog-log-pagetext' => "Si-sota a-i é na lista dj'assion su wikilog.",
53515311 'wikilog-log-cmt-approve' => 'coment aprovà [[$1]]',
@@ -5476,7 +5436,6 @@
54775437 */
54785438 $messages['ps'] = array(
54795439 'wikilog-specialwikilog-title' => 'ويکي يادښتونه',
5480 - 'wikilog-specialwikilog' => 'ويکي يادښت',
54815440 'wikilog-new-item-go' => 'جوړول',
54825441 'wikilog-item-name' => 'د ليکنې نوم:',
54835442 'wikilog-published' => 'خپاره شوي',
@@ -5538,7 +5497,6 @@
55395498 'right-wl-postcomment' => 'Criar comentários em artigos wikilog',
55405499 'right-wl-moderation' => 'Moderação de comentários de artigos wikilog',
55415500 'wikilog-specialwikilog-title' => 'Wikilogs',
5542 - 'wikilog-specialwikilog' => 'Wikilog',
55435501 'wikilog-log-pagename' => 'Registo de acções wikilog',
55445502 'wikilog-log-pagetext' => 'Abaixo está uma lista das acções wikilog.',
55455503 'wikilog-log-cmt-approve' => 'aprovou o comentário [[$1]]',
@@ -5682,7 +5640,6 @@
56835641 'right-wl-postcomment' => 'Comentar em entradas de wikilog',
56845642 'right-wl-moderation' => 'Moderar comentários de entradas de wikilog',
56855643 'wikilog-specialwikilog-title' => 'Wikilogs',
5686 - 'wikilog-specialwikilog' => 'Wikilog',
56875644 'wikilog-log-pagename' => 'Registro de ações wikilog',
56885645 'wikilog-log-pagetext' => 'Segue uma listagem das ações wikilog.',
56895646 'wikilog-log-cmt-approve' => 'aprovou o comentário "[[$1]]"',
@@ -5817,7 +5774,6 @@
58185775 'wikilog-auto' => 'Wikijurnal Auto',
58195776 'wikilog-help' => '{{ns:Help}}:Wikijurnal',
58205777 'wikilog-specialwikilog-title' => 'Wikijurnale',
5821 - 'wikilog-specialwikilog' => 'Wikijurnal',
58225778 'wikilog-log-pagename' => 'Jurnalul acțiunilor Wikijurnal',
58235779 'wikilog-tab' => 'Wikijurnal',
58245780 'wikilog-tab-title' => 'Acțiuni Wikijurnal',
@@ -5892,7 +5848,6 @@
58935849 'right-wl-postcomment' => "Manne commende a l'artichele UicchiArchivije",
58945850 'right-wl-moderation' => "Moderazione de le commende a l'artichele de UicchiArchivije",
58955851 'wikilog-specialwikilog-title' => 'UicchiArchivije',
5896 - 'wikilog-specialwikilog' => 'UicchiArchivije',
58975852 'wikilog-log-pagename' => 'UicchiArchivije archivije de le aziune',
58985853 'wikilog-log-pagetext' => "Sotte stè 'na liste de aziune de UicchiArchivije.",
58995854 'wikilog-log-cmt-approve' => 'commende approvate "[[$1]]"',
@@ -6032,7 +5987,6 @@
60335988 'right-wl-postcomment' => 'оставлять комментарии к статьям викилога',
60345989 'right-wl-moderation' => 'модерировать комментарии к статьям викилога',
60355990 'wikilog-specialwikilog-title' => 'Викилоги',
6036 - 'wikilog-specialwikilog' => 'Викилог',
60375991 'wikilog-log-pagename' => 'Журнал действий викилога',
60385992 'wikilog-log-pagetext' => 'Ниже приведен список действия викилога.',
60395993 'wikilog-log-cmt-approve' => 'утвердил комментарий [[$1]]',
@@ -6247,7 +6201,6 @@
62486202 'right-wl-postcomment' => 'විකි ලඝු ලිපිවලට විචාර තැපැල් කරන්න.',
62496203 'right-wl-moderation' => 'විකි ලඝු ලිපි විචාරවල මධ්‍යස්ථතාව',
62506204 'wikilog-specialwikilog-title' => 'විකි ලඝු සටහන්',
6251 - 'wikilog-specialwikilog' => 'විකි ලඝු සටහන',
62526205 'wikilog-log-pagename' => 'විකි ලඝු ක්‍රියාකාරකම් ලඝු සටහන',
62536206 'wikilog-log-pagetext' => 'පහතින් විකි ලඝු ක්‍රියාකාරකම්වල ලැයිස්තුවකි.',
62546207 'wikilog-log-cmt-approve' => 'අනුමත කරනු ලැබූ විචාරය [[$1]]',
@@ -6371,7 +6324,6 @@
63726325 'wikilog-help' => '{{ns:Help}}:Wikilog',
63736326 'right-wl-postcomment' => 'Objavljanje pripomb k člankom wikiloga',
63746327 'wikilog-specialwikilog-title' => 'Wikilogi',
6375 - 'wikilog-specialwikilog' => 'Wikilog',
63766328 'wikilog-log-pagename' => 'Dnevnik dejanj Wikilog',
63776329 'wikilog-log-pagetext' => 'Spodaj se nahaja seznam dejanj wikiloga.',
63786330 'wikilog-log-cmt-approve' => 'odobril(-a) pripombo »[[$1]]«',
@@ -6643,7 +6595,6 @@
66446596 'right-wl-postcomment' => 'Skriv kommentarer till wikilog-artiklar',
66456597 'right-wl-moderation' => 'Moderering av wikilog-artikelkommentarer',
66466598 'wikilog-specialwikilog-title' => 'Wikilog-bloggar',
6647 - 'wikilog-specialwikilog' => 'Wikilogg',
66486599 'wikilog-log-pagename' => 'Wikilog händelselogg',
66496600 'wikilog-log-pagetext' => 'Nedan är en lista över wikilog-händelser.',
66506601 'wikilog-log-cmt-approve' => 'godkände kommentar [[$1]]',
@@ -6806,7 +6757,6 @@
68076758 */
68086759 $messages['te'] = array(
68096760 'wikilog-specialwikilog-title' => 'వికీచిట్టాలు',
6810 - 'wikilog-specialwikilog' => 'వికీచిట్టా',
68116761 'wikilog-log-pagename' => 'వికీలాగ్ చర్యల చిట్టా',
68126762 'wikilog-log-pagetext' => 'ఇది వికీలాగ్ చర్యల యొక్క జాబితా.',
68136763 'wikilog-log-cmt-approve' => '"[[$1]]" వ్యాఖ్యని అనుమతించారు',
@@ -6888,7 +6838,6 @@
68896839 $messages['tk'] = array(
68906840 'wikilog-auto' => 'Wikilog Awto',
68916841 'wikilog-specialwikilog-title' => 'Wikiloglar',
6892 - 'wikilog-specialwikilog' => 'Wikilog',
68936842 'wikilog-tab' => 'Wikilog',
68946843 'wikilog-tab-title' => 'Wikilog hereketleri',
68956844 'wikilog-new-item-go' => 'Döret',
@@ -6949,7 +6898,6 @@
69506899 'right-wl-postcomment' => 'Magpaskil ng mga puna sa mga artikulo ng wiki-tala',
69516900 'right-wl-moderation' => 'Pangangasiwa ng mga puna sa artikulo ng wiki-tala',
69526901 'wikilog-specialwikilog-title' => 'Mga wiki-tala',
6953 - 'wikilog-specialwikilog' => 'Wiki-tala',
69546902 'wikilog-log-pagename' => 'Tala ng mga galaw sa Wiki-tala',
69556903 'wikilog-log-pagetext' => 'Nasa ibaba ang isang talaan ng mga galaw sa wiki-tala.',
69566904 'wikilog-log-cmt-approve' => 'pinayagang puna "[[$1]]"',
@@ -7089,7 +7037,6 @@
70907038 'right-wl-postcomment' => 'Vikikayıt maddelerine yorum gönderir',
70917039 'right-wl-moderation' => 'Vikikayıt madde yorumlarının moderasyonu',
70927040 'wikilog-specialwikilog-title' => 'Vikiloglar',
7093 - 'wikilog-specialwikilog' => 'Vikilog',
70947041 'wikilog-log-pagename' => 'Vikikayıt işlem günlüğü',
70957042 'wikilog-log-pagetext' => 'Aşağıda vikilog hareketlerinin bir listesini bulabilirsiniz.',
70967043 'wikilog-log-cmt-approve' => 'onaylanan yorum "[[$1]]"',
@@ -7222,7 +7169,6 @@
72237170 'wikilog-help' => '{{ns:Help}}:Вікілоґ',
72247171 'right-wl-postcomment' => 'залишати коментарі до сторінок вікілогу',
72257172 'wikilog-specialwikilog-title' => 'Викилоги',
7226 - 'wikilog-specialwikilog' => 'Вікілоґ',
72277173 'wikilog-log-cmt-approve' => 'затвердив коментар «[[$1]]»',
72287174 'wikilog-log-cmt-reject' => 'відхилив коментар «[[$1]]»',
72297175 'wikilog-tab' => 'Вікілоґ',
@@ -7355,7 +7301,6 @@
73567302 */
73577303 $messages['yi'] = array(
73587304 'wikilog-specialwikilog-title' => 'וויקילאגן',
7359 - 'wikilog-specialwikilog' => 'וויקילאג',
73607305 'wikilog-tab' => 'וויקילאג',
73617306 'wikilog-new-item-go' => 'שאַפֿן',
73627307 'wikilog-item-name' => 'ארטיקל נאָמען:',
Index: trunk/extensions/Wikilog/WikilogItem.php
@@ -220,33 +220,6 @@
221221 }
222222
223223 /**
224 - * Returns an array with all published comments.
225 - * @deprecated Doesn't scale well, use query and pager objects instead.
226 - */
227 - public function getComments( $thread = null ) {
228 - wfDeprecated( __METHOD__ );
229 - $dbr = wfGetDB( DB_SLAVE );
230 -
231 - if ( $thread ) {
232 - $result = WikilogComment::fetchAllFromItemThread( $dbr, $this->mID, $thread );
233 - } else {
234 - $result = WikilogComment::fetchAllFromItem( $dbr, $this->mID );
235 - }
236 -
237 - $comments = array();
238 - foreach ( $result as $row ) {
239 - $comment = WikilogComment::newFromRow( $this, $row );
240 - if ( $comment->mCommentRev ) {
241 - $rev = Revision::newFromId( $row->mCommentRev );
242 - $comment->setText( $rev->getText() );
243 - }
244 - $comments[] = $comment;
245 - }
246 - $result->free();
247 - return $comments;
248 - }
249 -
250 - /**
251224 * Creates a new wikilog article object from a database row.
252225 * @param $row Row from database.
253226 * @return New WikilogItem object.
Index: trunk/extensions/Wikilog/WikilogUtils.php
@@ -190,10 +190,6 @@
191191 * with links to their user and user-talk pages, according to the
192192 * 'wikilog-author-signature' system message.
193193 *
194 - * @pre wfLoadExtensionMessages( 'Wikilog' ) must have been called. It
195 - * is not called here since this function can potentially be called
196 - * lots of times in a single page load.
197 - *
198194 * @param $list Array of authors.
199195 * @return Wikitext-formatted textual list of authors.
200196 */
@@ -217,10 +213,6 @@
218214 * Uses the 'wikilog-author-signature' system message, in order to provide
219215 * user and user-talk links.
220216 *
221 - * @pre wfLoadExtensionMessages( 'Wikilog' ) must have been called. It
222 - * is not called here since this function can potentially be called
223 - * lots of times in a single page load.
224 - *
225217 * @param $author String, author name.
226218 * @return Wikitext-formatted author signature.
227219 */
@@ -492,10 +484,7 @@
493485 $html = "{$pagingLinks['first']} {$pagingLinks['prev']} {$ellipsis} {$pagingLinks['next']} {$pagingLinks['last']}";
494486 $html = WikilogUtils::wrapDiv( 'wl-pagination', $html );
495487
496 - # NOTE (Mw1.15- COMPAT): Language::getDir() introduced in Mw1.16.
497 - # Use Language::isRTL() as a fallback.
498 - $dir = method_exists( $wgLang, 'getDir' ) ? $wgLang->getDir() :
499 - ( $wgLang->isRTL() ? 'rtl' : 'ltr' );
 488+ $dir = $wgLang->getDir();
500489
501490 return Xml::tags( 'div',
502491 array(

Status & tagging log