MediaWiki
REL1_22
|
Maintenance script to clean up broken, unparseable upload filenames. More...
Public Member Functions | |
__construct () | |
Protected Member Functions | |
processRow ($row) | |
Protected Attributes | |
$defaultParams | |
Private Member Functions | |
appendTitle ($name, $suffix) | |
buildSafeTitle ($name) | |
filePath ($name) | |
imageExists ($name, $db) | |
killRow ($name) | |
pageExists ($name, $db) | |
pokeFile ($orig, $new) |
Maintenance script to clean up broken, unparseable upload filenames.
Definition at line 39 of file cleanupImages.php.
Reimplemented from TableCleanup.
Definition at line 47 of file cleanupImages.php.
ImageCleanup::appendTitle | ( | $ | name, |
$ | suffix | ||
) | [private] |
ImageCleanup::buildSafeTitle | ( | $ | name | ) | [private] |
Definition at line 199 of file cleanupImages.php.
References $name, $test, array(), Maintenance\error(), Title\legalChars(), and Title\makeTitleSafe().
Referenced by processRow().
ImageCleanup::filePath | ( | $ | name | ) | [private] |
Definition at line 113 of file cleanupImages.php.
References $name, and RepoGroup\singleton().
Referenced by pokeFile().
ImageCleanup::imageExists | ( | $ | name, |
$ | db | ||
) | [private] |
Definition at line 120 of file cleanupImages.php.
References $name, and array().
Referenced by pokeFile().
ImageCleanup::killRow | ( | $ | name | ) | [private] |
$name | string |
Definition at line 101 of file cleanupImages.php.
References $name, array(), Maintenance\output(), and wfGetDB().
Referenced by pokeFile(), and processRow().
ImageCleanup::pageExists | ( | $ | name, |
$ | db | ||
) | [private] |
Definition at line 124 of file cleanupImages.php.
References $name, and array().
Referenced by pokeFile().
ImageCleanup::pokeFile | ( | $ | orig, |
$ | new | ||
) | [private] |
Definition at line 128 of file cleanupImages.php.
References $dir, $path, appendTitle(), array(), Maintenance\error(), filePath(), imageExists(), killRow(), Maintenance\output(), pageExists(), wfGetDB(), and wfMkdirParents().
Referenced by processRow().
ImageCleanup::processRow | ( | $ | row | ) | [protected] |
Definition at line 52 of file cleanupImages.php.
References $source, $title, $wgContLang, buildSafeTitle(), Sanitizer\decodeCharReferences(), global, killRow(), Title\makeTitleSafe(), Maintenance\output(), pokeFile(), and TableCleanup\progress().
ImageCleanup::$defaultParams [protected] |
Reimplemented from TableCleanup.
Definition at line 40 of file cleanupImages.php.