whitespace consistency
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 18 Jun 2007 15:34:04 +0000 (15:34 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 18 Jun 2007 15:34:04 +0000 (15:34 +0000)
docs/hooks.txt

index af4a585..1e4a264 100644 (file)
@@ -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,