Manual:findHooks.php

From Linux Web Expert

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.34</tvar> is unsupported version</translate>">
<translate> ≤</translate> 1.34
<translate> MediaWiki version:</translate>

Details

findHooks.php file is a maintenance script that compares documented and actually present mismatches. This script assumes that hook names in hooks.txt are at the beginning of a line and single quoted and hooks names in code are the first parameter of wfRunHooks.

Options/Arguments

Option Description Required?
--online Check against MediaWiki.org hook documentation <translate> Optional</translate>

Usage

php maintenance/findHooks.php [ --online ]

Basic run

Terminal

Check against MediaWiki.org

Terminal

See also