summaryrefslogtreecommitdiff
path: root/lib/htmloutputter.php
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@controlyourself.ca>2009-02-11 19:56:59 +0000
committerSarven Capadisli <csarven@controlyourself.ca>2009-02-11 19:56:59 +0000
commit87f243917d5e58478a32a58e9d6b3364a8e02912 (patch)
treefe24ea7d988e80e307ed7fdd5a87fca3bab937ce /lib/htmloutputter.php
parent21f6c911611fe9debfae9a4c123e91294bc877e3 (diff)
parentab37f84b5a2850e8f10b78a1a3781edb0981b7ca (diff)
Merge branch '0.7.x' of git@gitorious.org:laconica/dev into 0.7.x
Diffstat (limited to 'lib/htmloutputter.php')
-rw-r--r--lib/htmloutputter.php14
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/htmloutputter.php b/lib/htmloutputter.php
index e2319b1fd..45e61d2fc 100644
--- a/lib/htmloutputter.php
+++ b/lib/htmloutputter.php
@@ -108,22 +108,26 @@ class HTMLOutputter extends XMLOutputter
}
header('Content-Type: '.$type);
-
+
$this->extraHeaders();
$this->startXML('html',
'-//W3C//DTD XHTML 1.0 Strict//EN',
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd');
- // FIXME: correct language for interface
-
- $language = common_language();
+ $language = $this->getLanguage();
$this->elementStart('html', array('xmlns' => 'http://www.w3.org/1999/xhtml',
'xml:lang' => $language,
'lang' => $language));
}
+ function getLanguage()
+ {
+ // FIXME: correct language for interface
+ return common_language();
+ }
+
/**
* Ends an HTML document
*
@@ -134,7 +138,7 @@ class HTMLOutputter extends XMLOutputter
$this->elementEnd('html');
$this->endXML();
}
-
+
/**
* To specify additional HTTP headers for the action
*