changeset 92:f468365813c9

Set language header. Remove cruft.
author Tom Fredrik "BFG" Klaussen <bfg@blenning.no>
date Thu, 18 Oct 2012 14:04:19 +0200
parents 1d4c980f4255
children 8aadd7a23b68
files Flag.inc InputParser.inc
diffstat 2 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/Flag.inc	Thu Oct 18 00:28:48 2012 +0200
+++ b/Flag.inc	Thu Oct 18 14:04:19 2012 +0200
@@ -71,13 +71,11 @@
     return false;
   }
 
-
   /**
    * Produce the actual content
    */
   function generateContent()
   {
-
     $flag = loadFile($this->name);
 
     if (floatval($flag) < 0) {
--- a/InputParser.inc	Thu Oct 18 00:28:48 2012 +0200
+++ b/InputParser.inc	Thu Oct 18 14:04:19 2012 +0200
@@ -75,9 +75,9 @@
    */
   function generateContent()
   {
-    //print_r($this->options->getCache()->cacheSet(1));
-    //exit;
-    return $this->master->saveXml($this->master);
+    $retVal = new PageContent($this->master->saveXml($this->master));
+    $retVal->setHeader('Content-Language', $this->options->getLang());
+    return $retVal;
   }
 
   /**