r60649 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r60648‎ | r60649 | r60650 >
Date:08:40, 5 January 2010
Author:mah
Status:ok
Tags:
Comment:
Add documentation for $wgVariantArticlePath
Modified paths:
  • /trunk/phase3/includes/DefaultSettings.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/DefaultSettings.php
@@ -151,7 +151,6 @@
152152 $wgStyleDirectory = false; ///< defaults to "{$IP}/skins"
153153 $wgStyleSheetPath = &$wgStylePath;
154154 $wgArticlePath = false; ///< default to "{$wgScript}/$1" or "{$wgScript}?title=$1", depending on $wgUsePathInfo
155 -$wgVariantArticlePath = false;
156155 $wgUploadPath = false; ///< defaults to "{$wgScriptPath}/images"
157156 $wgUploadDirectory = false; ///< defaults to "{$IP}/images"
158157 $wgHashedUploadDirectory = true;
@@ -1038,6 +1037,22 @@
10391038 $wgDisabledVariants = array();
10401039
10411040 /**
 1041+ * Like $wgArticlePath, but on multi-variant wikis, this provides a
 1042+ * path format that describes which parts of the URL contain the
 1043+ * language variant. For Example:
 1044+ *
 1045+ * $wgLanguageCode = 'sr';
 1046+ * $wgVariantArticlePath = '/$2/$1';
 1047+ * $wgArticlePath = '/wiki/$1';
 1048+ *
 1049+ * A link to /wiki/ would be redirected to /sr/Главна_страна
 1050+ *
 1051+ * It is important that $wgArticlePath not overlap with possible values
 1052+ * of $wgVariantArticlePath.
 1053+ */
 1054+$wgVariantArticlePath = false;///< defaults to false
 1055+
 1056+/**
10421057 * Show a bar of language selection links in the user login and user
10431058 * registration forms; edit the "loginlanguagelinks" message to
10441059 * customise these

Status & tagging log