http://www.mediawiki.org/wiki/Special:Code/MediaWiki/97477
Revision: 97477
Author: nikerabbit
Date: 2011-09-19 12:18:36 +0000 (Mon, 19 Sep 2011)
Log Message:
-----------
Fixing a PHP notice that was caused by over eager filtering of redirects. So
lets just load the content even if it is a redirect.
PHP Notice: Undefined index: Wm-license-attribution-with-author-text/zh in
/www/w/extensions/Translate/specials/SpecialTranslations.php on line 239
Modified Paths:
--------------
trunk/extensions/Translate/TranslateUtils.php
Modified: trunk/extensions/Translate/TranslateUtils.php
===================================================================
--- trunk/extensions/Translate/TranslateUtils.php 2011-09-19 12:17:55 UTC
(rev 97476)
+++ trunk/extensions/Translate/TranslateUtils.php 2011-09-19 12:18:36 UTC
(rev 97477)
@@ -80,7 +80,6 @@
$rows = $dbr->select( array( 'page', 'revision', 'text' ),
array( 'page_title', 'old_text', 'old_flags',
'rev_user_text' ),
array(
- 'page_is_redirect' => 0,
'page_namespace' => $namespace,
'page_latest=rev_id',
'rev_text_id=old_id',
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs