Update to Drupal 8.2.0. For more information, see https://www.drupal.org/project/drupal/releases/8.2.0
This commit is contained in:
parent
2f563ab520
commit
f1c8716f57
1732 changed files with 52334 additions and 11780 deletions
|
@ -5,6 +5,8 @@
|
|||
* Initiates a browser-based installation of Drupal.
|
||||
*/
|
||||
|
||||
use Drupal\Component\Utility\OpCodeCache;
|
||||
|
||||
// Change the directory to the Drupal root.
|
||||
chdir('..');
|
||||
// Store the Drupal root path.
|
||||
|
@ -28,12 +30,15 @@ if (version_compare(PHP_VERSION, '5.5.9') < 0) {
|
|||
exit;
|
||||
}
|
||||
|
||||
if (function_exists('opcache_get_status') && opcache_get_status()['opcache_enabled'] && !ini_get('opcache.save_comments')) {
|
||||
// Initialize the autoloader.
|
||||
$class_loader = require_once $root_path . '/autoload.php';
|
||||
|
||||
// If OPCache is in use, ensure opcache.save_comments is enabled.
|
||||
if (OpCodeCache::isEnabled() && !ini_get('opcache.save_comments')) {
|
||||
print 'Systems with OPcache installed must have <a href="http://php.net/manual/en/opcache.configuration.php#ini.opcache.save-comments">opcache.save_comments</a> enabled.';
|
||||
exit();
|
||||
}
|
||||
|
||||
// Start the installer.
|
||||
$class_loader = require_once $root_path . '/autoload.php';
|
||||
require_once $root_path . '/core/includes/install.core.inc';
|
||||
install_drupal($class_loader);
|
||||
|
|
Reference in a new issue