diff --git a/Gruntfile.js b/Gruntfile.js index 31028034c280f..5519f0b583e1f 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -811,7 +811,7 @@ window.errorLocale = {`; }`; // Write the file - grunt.file.write('installation/template/js/error-locales.js', template); + grunt.file.write('templates/system/js/error-locales.js', template); }); }; diff --git a/administrator/index.php b/administrator/index.php index ae41f14457b38..cf170d34a22b2 100644 --- a/administrator/index.php +++ b/administrator/index.php @@ -17,7 +17,7 @@ if (version_compare(PHP_VERSION, JOOMLA_MINIMUM_PHP, '<')) { - die('Your host needs to use PHP ' . JOOMLA_MINIMUM_PHP . ' or higher to run this version of Joomla!'); + die(str_replace(['{{PHP_VERSION}}', '{{BASEPATH}}'], [JOOMLA_MINIMUM_PHP, 'http://' . $_SERVER['SERVER_NAME'] . '/'], file_get_contents(dirname(__FILE__) . '/../templates/system/incompatible.html'))); } /** diff --git a/index.php b/index.php index 4d1c9c8b9e624..a3688abb13e4b 100644 --- a/index.php +++ b/index.php @@ -17,7 +17,7 @@ if (version_compare(PHP_VERSION, JOOMLA_MINIMUM_PHP, '<')) { - die('Your host needs to use PHP ' . JOOMLA_MINIMUM_PHP . ' or higher to run this version of Joomla!'); + die(str_replace(['{{PHP_VERSION}}', '{{BASEPATH}}'], [JOOMLA_MINIMUM_PHP, 'http://' . $_SERVER['SERVER_NAME'] . '/'], file_get_contents(dirname(__FILE__) . '/templates/system/incompatible.html'))); } /** diff --git a/installation/index.php b/installation/index.php index 5e0bd447fdfda..a9742ea5f9552 100644 --- a/installation/index.php +++ b/installation/index.php @@ -17,7 +17,7 @@ if (version_compare(PHP_VERSION, JOOMLA_MINIMUM_PHP, '<')) { - die(str_replace('{{PHP_VERSION}}', JOOMLA_MINIMUM_PHP, file_get_contents(dirname(__FILE__) . '/template/incompatible.html'))); + die(str_replace(['{{PHP_VERSION}}', '{{BASEPATH}}'], [JOOMLA_MINIMUM_PHP, 'http://' . $_SERVER['SERVER_NAME'] . '/'], file_get_contents(dirname(__FILE__) . '/../templates/system/incompatible.html'))); } /** diff --git a/installation/language/en-US/en-US.ini b/installation/language/en-US/en-US.ini index db2c3ced7b193..7c22c90236ca9 100644 --- a/installation/language/en-US/en-US.ini +++ b/installation/language/en-US/en-US.ini @@ -5,7 +5,7 @@ ;Minimum PHP error page ;These will be processed by Grunt -MIN_PHP_ERROR_LANGUAGE="English GB" +MIN_PHP_ERROR_LANGUAGE="English US" MIN_PHP_ERROR_HEADER="Sorry, your PHP version is not supported" MIN_PHP_ERROR_TEXT="Your host needs to use PHP version {{phpversion}} or newer to run this version of Joomla" MIN_PHP_ERROR_URL_TEXT="Help me resolve this" diff --git a/installation/template/css/error.css b/installation/template/css/error.css deleted file mode 100644 index 7e88430afeb06..0000000000000 --- a/installation/template/css/error.css +++ /dev/null @@ -1,161 +0,0 @@ -body { - margin: 0; - padding: 0; - font: 14px / 18px sans-serif; - color: #555; - background-color: transparent -} - -html { - background-color: #3a92c8; - background: radial-gradient(circle, #fdfdfd, #f1f1f1); - background-repeat: no-repeat; - background-attachment: fixed; - * background-image: none -} - -ol, ul { - padding: 0; - margin: 0; - list-style: none -} - -a { - color: #0084b4; - text-decoration: none; - outline: 0 -} - -a:hover, a:focus { - text-decoration: underline -} - -p a { - line-height: inherit -} - -.container { - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - position: relative; - margin: 0 auto; - width: 100%; - height: 100vh; - overflow: hidden; -} - -.alert-main { - display: block; - position: relative; - background: #fff; - border: 1px solid rgba(0,0,0,0.1); - border-radius: 5px; - padding: 20px 60px; - margin: 0 20px; - box-shadow: 0 0 10px rgba(0,0,0,0.05); -} - -svg { - position: absolute; - bottom: -120px; - right: -70px; - width: 400px; - transform: rotate(10deg); - z-index: -1; -} - -h1, p { - position: relative; - z-index: 10; - text-align: center; - text-rendering: optimizeLegibility -} - -h1 { - margin: 18px 0 0; - font-size: 40px; - font-weight: 200; - line-height: 1; - text-shadow: 0 1px 2px rgba(0, 0, 0, .2) -} - -p, label { - margin: 10px 0 20px; - font-size: 18px; - font-weight: 300; - line-height: 25px; - color: #777 -} - -p a { - font-weight: bold; - color: #1C3D5C -} - -.link-help { - padding: .4rem .85rem; - font-size: 1rem; - font-weight: normal; - border-radius: .25rem; - text-decoration: none; - background-color: #f5f5f5; - border: 1px solid rgba(0,0,0,0.1); -} -.link-help:hover { - background-color: #eee; - text-decoration: none; -} - -.footer { - margin: 8px 20px; - text-align: left; - font-size: 11px -} - -.footer ul { - margin-bottom: 5px; -} - -.footer li { - display: inline; - margin: 0 5px; - line-height: 20px -} - -.footer li, .footer a { - color: #1C3D5C -} - -.footer a:hover { - color: #59B0FF -} - -.links { - display: block; - text-align: center; - margin-top: 4rem; - margin-left: auto; - margin-right: auto; - font-size: 1rem -} -.links li { - display: inline-block; - margin-top: 20px; -} - -@media screen and (max-width:480px) { - .container { - height: auto; - padding-top: 20px; - padding-bottom: 20px; - } - h1 { - font-size: 30px - } - - .link-help { - white-space: nowrap; - } -} diff --git a/installation/template/incompatible.html b/installation/template/incompatible.html deleted file mode 100644 index 31c6ec9c473c3..0000000000000 --- a/installation/template/incompatible.html +++ /dev/null @@ -1,41 +0,0 @@ - -
- - - - -Your host needs to use PHP version {{PHP_VERSION}} or newer to run this version of Joomla!
- - -Your host needs to use PHP version {{PHP_VERSION}} or newer to run this version of Joomla!
+ + +