From: Roland Häder Date: Tue, 27 Nov 2012 21:35:12 +0000 (+0000) Subject: Added check for installation phase, this fixes the message of a missing template... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a62d259127a8bf2ec3e0e5da7d4ef34134bcde68;p=mailer.git Added check for installation phase, this fixes the message of a missing template and doesn't allow robots to index any installation page --- diff --git a/.gitattributes b/.gitattributes index aef2420b65..2e90ca011b 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1848,6 +1848,7 @@ templates/de/html/install/install_header.tpl svneol=native#text/plain templates/de/html/install/install_main_ajax.tpl svneol=native#text/plain templates/de/html/install/install_main_plain.tpl svneol=native#text/plain templates/de/html/install/install_menu.tpl svneol=native#text/plain +templates/de/html/install/install_metadata.tpl svneol=native#text/plain templates/de/html/install/install_overview_failed.tpl svneol=native#text/plain templates/de/html/install/install_page1.tpl svneol=native#text/plain templates/de/html/install/install_page2.tpl svneol=native#text/plain diff --git a/inc/module-functions.php b/inc/module-functions.php index cf0ea0d049..befb470dc4 100644 --- a/inc/module-functions.php +++ b/inc/module-functions.php @@ -542,6 +542,9 @@ function getMenuModeFromModule () { } elseif (getModule() == 'admin') { // Is admin area $GLOBALS[__FUNCTION__] = 'admin'; + } elseif (isInstallationPhase()) { + // Is installation phase + $GLOBALS[__FUNCTION__] = 'install'; } else { // Get it from filter $GLOBALS[__FUNCTION__] = runFilterChain('determine_menu_mode'); diff --git a/templates/de/html/install/install_metadata.tpl b/templates/de/html/install/install_metadata.tpl new file mode 100644 index 0000000000..4633e1d71e --- /dev/null +++ b/templates/de/html/install/install_metadata.tpl @@ -0,0 +1 @@ +