MediaWiki
REL1_19
|
Global functions related to images. More...
Go to the source code of this file.
Functions | |
wfIsBadImage ($name, $contextTitle=false, $blacklist=null) | |
Determine if an image exists on the 'bad image list'. |
Global functions related to images.
Definition in file ImageFunctions.php.
wfIsBadImage | ( | $ | name, |
$ | contextTitle = false , |
||
$ | blacklist = null |
||
) |
Determine if an image exists on the 'bad image list'.
The format of MediaWiki:Bad_image_list is as follows: * Only list items (lines starting with "*") are considered * The first link on a line must be a link to a bad image * Any subsequent links on the same line are considered to be exceptions, i.e. articles where the image may occur inline.
$name | string the image name to check |
$contextTitle | Title|bool the page on which the image occurs, if known |
$blacklist | string wikitext of a file blacklist |
Definition at line 22 of file ImageFunctions.php.
References $exceptions, $lines, $title, Title\makeTitle(), Title\newFromText(), RepoGroup\singleton(), wfMsgForContentNoTrans(), wfProfileIn(), wfProfileOut(), and wfRunHooks().
Referenced by GlobalWithDBTest\testWfIsBadImage(), and ImageGallery\toHTML().