MediaWiki  REL1_19
ImageFunctions.php File Reference

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'.

Detailed Description

Global functions related to images.

Definition in file ImageFunctions.php.


Function Documentation

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.

Parameters:
$namestring the image name to check
$contextTitleTitle|bool the page on which the image occurs, if known
$blackliststring wikitext of a file blacklist
Returns:
bool

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().

Here is the call graph for this function:

Here is the caller graph for this function: