Index: trunk/phase3/maintenance/language/messages.inc |
— | — | @@ -157,6 +157,7 @@ |
158 | 158 | 'listingcontinuesabbrev', |
159 | 159 | 'index-category', |
160 | 160 | 'noindex-category', |
| 161 | + 'broken-file-category', |
161 | 162 | ), |
162 | 163 | 'mainpage' => array( |
163 | 164 | 'linkprefix', |
Index: trunk/phase3/includes/parser/Parser.php |
— | — | @@ -4810,6 +4810,10 @@ |
4811 | 4811 | |
4812 | 4812 | list( $paramMap, $mwArray ) = $this->getImageParams( $handler ); |
4813 | 4813 | |
| 4814 | + if ( !$file ) { |
| 4815 | + $this->addTrackingCategory( 'broken-file-category' ); |
| 4816 | + } |
| 4817 | + |
4814 | 4818 | # Process the input parameters |
4815 | 4819 | $caption = ''; |
4816 | 4820 | $params = array( 'frame' => array(), 'handler' => array(), |
Index: trunk/phase3/languages/messages/MessagesQqq.php |
— | — | @@ -260,6 +260,7 @@ |
261 | 261 | See http://test.wikipedia.org/wiki/Category:Test_ko?uselang={{SUBPAGENAME}}, for example.', |
262 | 262 | 'index-category' => 'Name of the category where pages with the <nowiki>__INDEX__</nowiki> behaviour switch are listed. For description of this behaviour switch see [http://www.mediawiki.org/wiki/Help:Magic_words#Behavior_switches mediawiki].', |
263 | 263 | 'noindex-category' => 'Name of the category where pages with the <nowiki>__NOINDEX__</nowiki> behaviour switch are listed. For description of this behaviour switch see [http://www.mediawiki.org/wiki/Help:Magic_words#Behavior_switches mediawiki].', |
| 264 | +'broken-file-category' => 'Name of category where pages that embed files that do not exist ("broken images") are listed.', |
264 | 265 | |
265 | 266 | 'linkprefix' => '{{optional}}', |
266 | 267 | 'mainpagetext' => 'Along with {{msg|mainpagedocfooter}}, the text you will see on the Main Page when your wiki is installed.', |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -749,6 +749,7 @@ |
750 | 750 | 'listingcontinuesabbrev' => 'cont.', |
751 | 751 | 'index-category' => 'Indexed pages', |
752 | 752 | 'noindex-category' => 'Noindexed pages', |
| 753 | +'broken-file-category' => 'Pages with broken file links', |
753 | 754 | |
754 | 755 | 'linkprefix' => '/^(.*?)([a-zA-Z\\x80-\\xff]+)$/sD', # only translate this message to other languages if you have to change it |
755 | 756 | 'mainpagetext' => "'''MediaWiki has been successfully installed.'''", |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -133,6 +133,7 @@ |
134 | 134 | * Special:ListFiles is now transcludable. |
135 | 135 | * (bug 13879) Special:Emailuser asks for suitable target user if called without. |
136 | 136 | * (bug 16956) IPTC and XMP metadata now extracted from images |
| 137 | +* (bug 23816) A tracking category is now added for any pages with broken images. |
137 | 138 | |
138 | 139 | === Bug fixes in 1.18 === |
139 | 140 | * (bug 23119) WikiError class and subclasses are now marked as deprecated |