X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=docs%2Fhooks.txt;h=cb76341c4aea4fd205c1e82c8a58d0efd57d7c54;hb=26566732fa99e02d44ebe6de82a1136ef2b3bf16;hp=e1c9ec6f94325726d5d75f31d97cc4b604942990;hpb=e87a6ad62d879582386e62a95dbc35d97efaf1e8;p=lhc%2Fweb%2Fwiklou.git diff --git a/docs/hooks.txt b/docs/hooks.txt index e1c9ec6f94..cb76341c4a 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -728,6 +728,13 @@ $mediaWiki: Mediawiki object &$out: OutputPage object &$skin: Skin object +'BeforeHttpsRedirect': Prior to forcing HTTP->HTTPS redirect. Gives a chance to +override how the redirect is output by modifying, or by returning false, and +letting standard HTTP rendering take place. +ATTENTION: This hook is likely to be removed soon due to overall design of the system. +$context: IContextSource object +&$redirect: string URL, modifiable + 'BeforePageRedirect': Prior to sending an HTTP redirect. Gives a chance to override how the redirect is output by modifying, or by returning false and taking over the output. @@ -2179,6 +2186,14 @@ $title : Current Title object being displayed in search results. 'SearchableNamespaces': An option to modify which namespaces are searchable. &$arr : Array of namespaces ($nsId => $name) which will be used. +'SelfLinkBegin': Called before a link to the current article is displayed to +allow the display of the link to be customized. +$nt: the Title object +&$html: html to display for the link +&$trail: optional text to display before $html +&$prefix: optional text to display after $html +&$ret: the value to return if your hook returns false + 'SetupAfterCache': Called in Setup.php, after cache objects are set 'ShowMissingArticle': Called when generating the output for a non-existent page. @@ -2501,11 +2516,6 @@ $term: string of search term Special:Upload. $form: The SpecialUpload object -'SpecialVersionExtensionTypes': Called when generating the extensions credits, -use this to change the tables headers. Deprecated since MediaWiki 1.17, use the -ExtensionTypes hook instead. -$extTypes: associative array of extensions types - 'SpecialVersionVersionUrl': Called when building the URL for Special:Version. $wgVersion: Current $wgVersion for you to use &$versionUrl: Raw url to link to (eg: release notes)