diff CacheTimeCheck.inc @ 52:3898353ed1d8

Include fixes. sitemap don't print before everything has been processed. Make a class of accept-language.
author Tom Fredrik "BFG" Klaussen <bfg@blenning.no>
date Thu, 11 Oct 2012 00:48:46 +0200
parents 2d0cda52f43f
children 164268b4e0d9
line wrap: on
line diff
--- a/CacheTimeCheck.inc	Tue Oct 09 20:15:20 2012 +0200
+++ b/CacheTimeCheck.inc	Thu Oct 11 00:48:46 2012 +0200
@@ -1,4 +1,12 @@
 <?php
+$baseDir = dirname(__FILE__);
+
+include_once 'logger.inc';
+include_once 'common-functions.inc';
+$cache = CacheTimeCheck::instance(__FILE__);
+$cache->cache_time("${baseDir}/logger.inc");
+$cache->cache_time("${baseDir}/common-functions.inc");
+
 /**
  * CacheTimeCheck provides a set of functions to enable generating a
  * correct time for the latest update for a given file.
@@ -88,7 +96,7 @@
   {
     if (!file_exists($path)) {
       warn("${path} does not exist");
-      errorPage("Resource not available");
+      errorPage("Resource is not available");
     }
 
     array_push($this->files, $path);