r50112 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r50111‎ | r50112 | r50113 >
Date:21:22, 1 May 2009
Author:vasilievvv
Status:ok
Tags:
Comment:
* (bug 15008) Redirect images are now subject to Bad image list rules
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/ImageFunctions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/ImageFunctions.php
@@ -123,6 +123,12 @@
124124 static $badImages = false;
125125 wfProfileIn( __METHOD__ );
126126
 127+ # Handle redirects
 128+ $redirectTitle = RepoGroup::singleton()->checkRedirect( Title::makeTitle( NS_FILE, $name ) );
 129+ if( $redirectTitle ) {
 130+ $name = $redirectTitle->getDbKey();
 131+ }
 132+
127133 # Run the extension hook
128134 $bad = false;
129135 if( !wfRunHooks( 'BadImage', array( $name, &$bad ) ) ) {
Index: trunk/phase3/RELEASE-NOTES
@@ -108,6 +108,7 @@
109109 * (bug 18207) Strange spacing before [[irc:...]] links
110110 * Removed float from the user login form in RTL interface - caused display
111111 problems in FF2
 112+* (bug 15008) Redirect images are now subject to Bad image list rules
112113
113114 == API changes in 1.16 ==
114115

Status & tagging log