diff --git a/build/index.php b/build/index.php
index be115d9..98a285c 100644
--- a/build/index.php
+++ b/build/index.php
@@ -5,7 +5,7 @@ $start_time = time(true);
/*
* Pepperminty Wiki
* ================
- * Inspired by Minty Wiki by am2064:
+ * Inspired by Minty Wiki by am2064
* Link: https://github.com/am2064/Minty-Wiki
*
* Credits:
@@ -1693,9 +1693,15 @@ function add_recent_change($rchange)
function render_recent_changes($recentchanges)
{
$content = "
\n";
+ $last_time = 0;
foreach($recentchanges as $rchange)
{
+ if($last_time !== date("dmY", $rchange->timestamp))
+ $content .= "" . date("jS F", $rchange->timestamp) . "
\n";
+
$content .= render_recent_change($rchange);
+
+ $last_time = date("dmY", $rchange->timestamp);
}
$content .= "\t\t
";
diff --git a/module_index.json b/module_index.json
index 9ac84a2..b1399ea 100644
--- a/module_index.json
+++ b/module_index.json
@@ -41,7 +41,7 @@
"author": "Starbeamrainbowlabs",
"description": "Adds recent changes. Access through the 'recent-changes' action.",
"id": "feature-recent-changes",
- "lastupdate": 1459695897,
+ "lastupdate": 1459703430,
"optional": false
},
{
diff --git a/modules/feature-recent-changes.php b/modules/feature-recent-changes.php
index 563cc63..b743fd0 100644
--- a/modules/feature-recent-changes.php
+++ b/modules/feature-recent-changes.php
@@ -97,9 +97,15 @@ function add_recent_change($rchange)
function render_recent_changes($recentchanges)
{
$content = "\n";
+ $last_time = 0;
foreach($recentchanges as $rchange)
{
+ if($last_time !== date("dmY", $rchange->timestamp))
+ $content .= "" . date("jS F", $rchange->timestamp) . "
\n";
+
$content .= render_recent_change($rchange);
+
+ $last_time = date("dmY", $rchange->timestamp);
}
$content .= "\t\t
";
diff --git a/settings.fragment.php b/settings.fragment.php
index 51d8b06..d4ffc6e 100644
--- a/settings.fragment.php
+++ b/settings.fragment.php
@@ -2,7 +2,7 @@
/*
* Pepperminty Wiki
* ================
- * Inspired by Minty Wiki by am2064:
+ * Inspired by Minty Wiki by am2064
* Link: https://github.com/am2064/Minty-Wiki
*
* Credits: