From a62d259127a8bf2ec3e0e5da7d4ef34134bcde68 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 27 Nov 2012 21:35:12 +0000 Subject: [PATCH] Added check for installation phase, this fixes the message of a missing template and doesn't allow robots to index any installation page --- .gitattributes | 1 + inc/module-functions.php | 3 +++ templates/de/html/install/install_metadata.tpl | 1 + 3 files changed, 5 insertions(+) create mode 100644 templates/de/html/install/install_metadata.tpl 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 @@ + -- 2.30.2