diff --git a/includes/footer.php b/includes/footer.php index 88ee695797..8c57e050f3 100644 --- a/includes/footer.php +++ b/includes/footer.php @@ -71,7 +71,7 @@ require_once "includes/require.php"; //prepare the template to display the output $custom_head = ''; - $output = str_replace ("", $custom_title, $template); // defined in each individual page + $output = str_replace ("", $page["title"], $template); // defined in each individual page $output = str_replace ("", $custom_head, $output); // defined in each individual page if (strlen($v_menu) > 0) { $output = str_replace ("", $v_menu, $output); //defined in /includes/menu.php diff --git a/includes/header.php b/includes/header.php index a7d92dbbaf..50dd7c740a 100644 --- a/includes/header.php +++ b/includes/header.php @@ -104,21 +104,21 @@ require_once "includes/require.php"; $result = $prep_statement->fetchAll(PDO::FETCH_NAMED); $result_count = count($result); - $custom_title = ''; + $page["title"] = ''; foreach($result as $row) { $template_rss_sub_category = $row['rss_sub_category']; if (strlen($row['rss_group']) == 0) { //content is public $content_from_db = &$row['rss_description']; if (strlen($row['rss_title']) > 0) { - $custom_title = $row['rss_title']; + $page["title"] = $row['rss_title']; } } else { if (if_group($row[rss_group])) { //viewable only to designated group $content_from_db = &$row[rss_description]; if (strlen($row['rss_title']) > 0) { - $custom_title = $row['rss_title']; + $page["title"] = $row['rss_title']; } } }