mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Modified to allow multilingual html <title> support, if set appropriately in app_languages.php.
This commit is contained in:
@@ -71,7 +71,7 @@ require_once "includes/require.php";
|
||||
|
||||
//prepare the template to display the output
|
||||
$custom_head = '';
|
||||
$output = str_replace ("<!--{title}-->", $custom_title, $template); //<!--{title}--> defined in each individual page
|
||||
$output = str_replace ("<!--{title}-->", $page["title"], $template); //<!--{title}--> defined in each individual page
|
||||
$output = str_replace ("<!--{head}-->", $custom_head, $output); //<!--{head}--> defined in each individual page
|
||||
if (strlen($v_menu) > 0) {
|
||||
$output = str_replace ("<!--{menu}-->", $v_menu, $output); //defined in /includes/menu.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'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user