Add title to OPML export
Add title to OPML export

--- a/include/display.git_opml.php
+++ b/include/display.git_opml.php
@@ -17,6 +17,7 @@
 	$projlist = git_read_projects($projectroot,$projectlist);
 	header("Content-type: text/xml; charset=UTF-8");
 	$tpl->clear_all_assign();
+	$tpl->assign("title",$gitphp_conf['title']);
 	$tpl->display("opml_header.tpl");
 	echo "\n";
 	foreach ($projlist as $cat => $plist) {

--- a/templates/opml_header.tpl
+++ b/templates/opml_header.tpl
@@ -8,7 +8,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <opml version="1.0">
 <head>
-  <title>Git OPML Export</title>
+  <title>{$title} OPML Export</title>
 </head>
 <body>
 <outline text="git RSS feeds">

comments