Index: trunk/phase3/includes/ImageFunctions.php |
— | — | @@ -123,6 +123,12 @@ |
124 | 124 | static $badImages = false; |
125 | 125 | wfProfileIn( __METHOD__ ); |
126 | 126 | |
| 127 | + # Handle redirects |
| 128 | + $redirectTitle = RepoGroup::singleton()->checkRedirect( Title::makeTitle( NS_FILE, $name ) ); |
| 129 | + if( $redirectTitle ) { |
| 130 | + $name = $redirectTitle->getDbKey(); |
| 131 | + } |
| 132 | + |
127 | 133 | # Run the extension hook |
128 | 134 | $bad = false; |
129 | 135 | if( !wfRunHooks( 'BadImage', array( $name, &$bad ) ) ) { |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -108,6 +108,7 @@ |
109 | 109 | * (bug 18207) Strange spacing before [[irc:...]] links |
110 | 110 | * Removed float from the user login form in RTL interface - caused display |
111 | 111 | problems in FF2 |
| 112 | +* (bug 15008) Redirect images are now subject to Bad image list rules |
112 | 113 | |
113 | 114 | == API changes in 1.16 == |
114 | 115 | |