Update auto set for HTML title, PHP 7.0 class fixes

Auto append current page file name to the HTML auto title.

Fix class declaration in gettext reader for PHP 7.0
This commit is contained in:
Clemens Schwaighofer
2015-12-16 11:08:51 +09:00
parent 8160d05d25
commit a447fc2ef6
2 changed files with 3 additions and 1 deletions

View File

@@ -36,6 +36,8 @@
// set include & template names
$CONTENT_INCLUDE = str_replace(".php", ".tpl", $cms->page_name);
$FORM_NAME = !isset($FORM_NAME) || !$FORM_NAME ? str_replace(".php", "", $cms->page_name) : $FORM_NAME;
// set local page title
$L_TITLE = ucfirst(str_replace('_', ' ', $cms->get_page_name(1))).' - '.$G_TITLE;
// strip tpl and replace it with inc
// php include file per page
$cms->INC_TEMPLATE_NAME = str_replace(".tpl", ".inc", $CONTENT_INCLUDE);