Setup constants

This commit is contained in:
Matthew Barbour
2019-08-02 14:40:03 -05:00
committed by matthew
parent 5ceb6f4193
commit 972b68bdd3
29 changed files with 66 additions and 55 deletions

View File

@ -14,7 +14,7 @@ class RSS_Comments extends Extension
public function onPostListBuilding(PostListBuildingEvent $event)
{
global $config, $page;
$title = $config->get_string('title');
$title = $config->get_string(SetupConfig::TITLE);
$page->add_html_header("<link rel=\"alternate\" type=\"application/rss+xml\" ".
"title=\"$title - Comments\" href=\"".make_link("rss/comments")."\" />");
@ -60,7 +60,7 @@ class RSS_Comments extends Extension
";
}
$title = $config->get_string('title');
$title = $config->get_string(SetupConfig::TITLE);
$base_href = make_http(get_base_href());
$version = $config->get_string('version');
$xml = <<<EOD