From: Brion Vibber Date: Mon, 18 Jun 2007 15:34:04 +0000 (+0000) Subject: whitespace consistency X-Git-Tag: 1.31.0-rc.0~52509 X-Git-Url: http://git.cyclocoop.org/%22.%28%24lien.?a=commitdiff_plain;h=d08a0019f2d1dbfa0de81d26f4f31f03f1fc1d21;p=lhc%2Fweb%2Fwiklou.git whitespace consistency --- diff --git a/docs/hooks.txt b/docs/hooks.txt index af4a5852df..1e4a2646fc 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -35,19 +35,19 @@ order of a title before displaying the article; the other converts the title to all uppercase letters. Currently, in MediaWiki code, we would handle this as follows (note: not real code, here): - function showAnArticle($article) { - global $wgReverseTitle, $wgCapitalizeTitle; - - if ($wgReverseTitle) { - wfReverseTitle($article); - } - - if ($wgCapitalizeTitle) { - wfCapitalizeTitle($article); - } - - # code to actually show the article goes here - } + function showAnArticle($article) { + global $wgReverseTitle, $wgCapitalizeTitle; + + if ($wgReverseTitle) { + wfReverseTitle($article); + } + + if ($wgCapitalizeTitle) { + wfCapitalizeTitle($article); + } + + # code to actually show the article goes here + } An extension writer, or a local admin, will often add custom code to the function -- with or without a global variable. For example,