anewt-developers team mailing list archive
-
anewt-developers team
-
Mailing list archive
-
Message #00126
[Branch ~uws/anewt/anewt.uws] Rev 1721: [page] Always include <title> element in HTML output
------------------------------------------------------------
revno: 1721
committer: Wouter Bolsterlee <uws@xxxxxxxxx>
branch nick: anewt.uws
timestamp: Sun 2009-08-02 19:06:11 +0200
message:
[page] Always include <title> element in HTML output
This is required by the HTML specification.
modified:
page/page.lib.php
--
lp:anewt
https://code.launchpad.net/~uws/anewt/anewt.uws
Your team Anewt developers is subscribed to branch lp:anewt.
To unsubscribe from this branch go to https://code.launchpad.net/~uws/anewt/anewt.uws/+edit-subscription.
=== modified file 'page/page.lib.php'
--- page/page.lib.php 2009-08-02 16:32:09 +0000
+++ page/page.lib.php 2009-08-02 17:06:11 +0000
@@ -402,11 +402,11 @@
}
- /* Page title */
+ /* Page title (always include, even if empty, since this is required by
+ * the HTML specification) */
$title = $this->_get('title');
- if (!is_null($title))
- $head->append_child(ax_title($title));
+ $head->append_child(ax_title($title));
/* Dublin Core metadata. See http://dublincore.org/documents/dcq-html/ * */