A minor improvement for the tittle
This commit is contained in:
parent
5c966a6087
commit
9b9d056bba
|
|
@ -71,7 +71,12 @@ require_once "resources/require.php";
|
|||
|
||||
//prepare the template to display the output
|
||||
$custom_head = '';
|
||||
$document_title = (($document["title"] != '') ? $document["title"]." - " : null).$_SESSION["software_name"];
|
||||
if (isset($_SESSION["software_name"])) {
|
||||
$document_title = (($document["title"] != '') ? $document["title"]." - " : null).$_SESSION["software_name"];
|
||||
}
|
||||
else {
|
||||
$document_title = (($document["title"] != '') ? $document["title"]." " : null);
|
||||
}
|
||||
$output = str_replace ("<!--{title}-->", $document_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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue