From 22c52b1b71cd4fbeb8bf51df1afe1c7cecaa3da4 Mon Sep 17 00:00:00 2001 From: Nick White Date: Thu, 10 Sep 2009 22:21:02 +0100 Subject: Fixed bug to correct last modified date --- includes/footer.php | 16 +++++++++++----- index.php | 2 ++ 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/includes/footer.php b/includes/footer.php index 056c6b1..7706ccf 100644 --- a/includes/footer.php +++ b/includes/footer.php @@ -16,15 +16,17 @@ * along with this program. If not, see . */ -$moddate = filemtime($_SERVER['DOCUMENT_ROOT'] . "/text/" . $_SERVER['PHP_SELF']); -$moddate = date("d/m/Y", $moddate); -?> +function page_footer($contentpath) { + +$moddate = filemtime($contentpath); +$moddate = date("d/m/Y", $moddate); +print '