summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-05-21 11:24:04 -0400
committerEvan Prodromou <evan@prodromou.name>2008-05-21 11:24:04 -0400
commitddcf051b26b00f18f6d3c674406c5bab052bc4a0 (patch)
treee3be197d8640817bc776c16b905bdbd0f6e49130 /lib/util.php
parent871dcac8912f9aed8ba474da4a7c741a0d2e8b42 (diff)
add RSS 1.0 link to header of showstream
darcs-hash:20080521152404-84dde-bc5a2121ca9acddca9ed43c07935f713cf5c0b8e.gz
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php
index 31bf0de1f..9635c1abb 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -82,7 +82,7 @@ function common_end_xml() {
$xw->flush();
}
-function common_show_header($pagetitle) {
+function common_show_header($pagetitle, $callable=NULL, $data=NULL) {
global $config, $xw;
header('Content-Type: application/xhtml+xml');
@@ -112,6 +112,13 @@ function common_show_header($pagetitle) {
'type' => 'text/css',
'href' => $config['site']['path'] . 'theme/default/style/print.css',
'media' => 'print'));
+ if ($callable) {
+ if ($data) {
+ call_user_func($callable, $data);
+ } else {
+ call_user_func($callable);
+ }
+ }
common_element_end('head');
common_element_start('body');
common_element_start('div', array('id' => 'wrapper'));