Index: maintenance/language/messages.inc
===================================================================
--- maintenance/language/messages.inc (revision 86456)
+++ maintenance/language/messages.inc (working copy)
@@ -157,6 +157,7 @@
'listingcontinuesabbrev',
'index-category',
'noindex-category',
+ 'broken-file-category',
),
'mainpage' => array(
'linkprefix',
Index: includes/parser/Parser.php
===================================================================
--- includes/parser/Parser.php (revision 86456)
+++ includes/parser/Parser.php (working copy)
@@ -4810,6 +4810,10 @@
list( $paramMap, $mwArray ) = $this->getImageParams( $handler );
+ if ( !$file ) {
+ $this->addTrackingCategory( 'broken-file-category' );
+ }
+
# Process the input parameters
$caption = '';
$params = array( 'frame' => array(), 'handler' => array(),
Index: languages/messages/MessagesQqq.php
===================================================================
--- languages/messages/MessagesQqq.php (revision 86456)
+++ languages/messages/MessagesQqq.php (working copy)
@@ -260,6 +260,7 @@
See http://test.wikipedia.org/wiki/Category:Test_ko?uselang={{SUBPAGENAME}}, for example.',
'index-category' => 'Name of the category where pages with the __INDEX__ behaviour switch are listed. For description of this behaviour switch see [http://www.mediawiki.org/wiki/Help:Magic_words#Behavior_switches mediawiki].',
'noindex-category' => 'Name of the category where pages with the __NOINDEX__ behaviour switch are listed. For description of this behaviour switch see [http://www.mediawiki.org/wiki/Help:Magic_words#Behavior_switches mediawiki].',
+'broken-file-category' => 'Name of category where pages that embed files that do not exist ("broken images") are listed.',
'linkprefix' => '{{optional}}',
'mainpagetext' => 'Along with {{msg|mainpagedocfooter}}, the text you will see on the Main Page when your wiki is installed.',
Index: languages/messages/MessagesEn.php
===================================================================
--- languages/messages/MessagesEn.php (revision 86456)
+++ languages/messages/MessagesEn.php (working copy)
@@ -748,6 +748,7 @@
'listingcontinuesabbrev' => 'cont.',
'index-category' => 'Indexed pages',
'noindex-category' => 'Noindexed pages',
+'broken-file-category' => 'Pages with broken file links',
'linkprefix' => '/^(.*?)([a-zA-Z\\x80-\\xff]+)$/sD', # only translate this message to other languages if you have to change it
'mainpagetext' => "'''MediaWiki has been successfully installed.'''",