Fix documentation of hook 'BeforeParserFetchFileAndTitle'
authorRicordisamoa <ricordisamoa@openmailbox.org>
Tue, 9 Dec 2014 19:10:11 +0000 (19:10 +0000)
committerUmherirrender <umherirrender_de.wp@web.de>
Wed, 10 Dec 2014 15:54:35 +0000 (15:54 +0000)
By placing the notice "If 'broken' is a key in $options
then the file will appear..." added by Aaron Schulz with
commit 9d572d1844380c0db268b456f297bd7675eb609f.
This solves a 'FIXME' added by Siebrand Mazeland with
commit b33c77a52562975aa2503dac66e716e6a5a7ad2e.

Change-Id: I9d100588276faac5d5b2be979d8140389e5ed85a

docs/hooks.txt

index f8b077e..5cc0a67 100644 (file)
@@ -776,12 +776,10 @@ $out: OutputPage object
 'BeforeParserFetchFileAndTitle': Before an image is rendered by Parser.
 $parser: Parser object
 $nt: the image title
-&$options: array of options to RepoGroup::findFile
+&$options: array of options to RepoGroup::findFile. If it contains 'broken'
+  as a key then the file will appear as a broken thumbnail.
 &$descQuery: query string to add to thumbnail URL
 
-FIXME: Where does the below sentence fit in?
-If 'broken' is a key in $options then the file will appear as a broken thumbnail.
-
 'BeforeParserFetchTemplateAndtitle': Before a template is fetched by Parser.
 $parser: Parser object
 $title: title of the template