]> git.nbdom.net Git - nb.git/commitdiff
head
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 31 Mar 2015 15:37:45 +0000 (17:37 +0200)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 31 Mar 2015 15:37:45 +0000 (17:37 +0200)
lib/php/page.php

index 7be44dd145c1ec76d6fc40bc304304f1edde432e..56e564befd08802156036d9a9e1ea2ef2cd7d8b4 100644 (file)
@@ -241,8 +241,6 @@ class Page {
 
     if (preg_match('/ml$/',$this->content_type)) {
 
-      foreach ($this->head as $h) $head .= $h.PHP_EOL;
-
       $head .= '<head>'.PHP_EOL;
       #$head .= '</head>'.PHP_EOL; return $head;
 
@@ -272,6 +270,8 @@ class Page {
 
       }
 
+      foreach ($this->to_array($this->head) as $h) $head .= $h.PHP_EOL;
+
       $head .= '</head>'.PHP_EOL;
     }