http://www.mediawiki.org/wiki/Special:Code/MediaWiki/99776
Revision: 99776
Author: jpostlethwaite
Date: 2011-10-14 15:54:34 +0000 (Fri, 14 Oct 2011)
Log Message:
-----------
Variable does not need to check for global value. It will be updated in
LocalSettings.php. Added variable documentation.
Modified Paths:
--------------
trunk/extensions/LastModified/LastModified.php
Modified: trunk/extensions/LastModified/LastModified.php
===================================================================
--- trunk/extensions/LastModified/LastModified.php 2011-10-14 15:53:20 UTC
(rev 99775)
+++ trunk/extensions/LastModified/LastModified.php 2011-10-14 15:54:34 UTC
(rev 99776)
@@ -70,7 +70,25 @@
$wgHooks['BeforePageDisplay'][] = 'fnLastModified';
-$wgLastModifiedRange = isset( $wgLastModifiedRange ) ? (integer)
$wgLastModifiedRange : 0;
+/**
+ * This variable controls the display range.
+ *
+ * For example, if you only want to display the message for articles that were
+ * updated less than 30 days ago, set this value to 2. This will display a
+ * message like: "Last updated 20 days ago." You will not see this message for
+ * articles that were modifed more than 30 days ago.
+ *
+ * @var integer $wgLastModifiedRange
+ *
+ * $wgLastModifiedRange options:
+ * - 0: years - display: years, months, days, hours, minutes, seconds
+ * - 1: months - display: months, days, hours, minutes, seconds
+ * - 2: days - display: days, hours, minutes, seconds
+ * - 3: hours - display: hours, minutes, seconds
+ * - 4: minutes - display: minutes, seconds
+ * - 5: seconds - display: seconds
+ */
+$wgLastModifiedRange = 0;
/**
* @param $out OutputPage
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs