From 1d03cfd833b6650b1496b0bb4ff45aa14d836eef Mon Sep 17 00:00:00 2001 From: Nik K <4200435+Dorson@users.noreply.github.com> Date: Thu, 8 Feb 2024 19:14:09 +0100 Subject: [PATCH] PHP 8 Update for bootstrap.inc Updated syntax / variable definition to the PHP 8 version standard. Makes the bootstrap.inc run on php 8 old format was ${VAR} , new PHP8 format is {$VAR} Simple , one letter change makes it work :-) --- includes/bootstrap.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index d1bcedfa71..00d7a3ea0b 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -532,7 +532,7 @@ function drupal_get_filename($type, $name, $filename = NULL) { // Fallback to searching the filesystem if the database connection is // not established or the requested file is not found. $config = conf_path(); - $dir = (($type == 'theme_engine') ? 'themes/engines' : "${type}s"); + $dir = (($type == 'theme_engine') ? 'themes/engines' : "{$type}s"); $file = (($type == 'theme_engine') ? "$name.engine" : "$name.$type"); foreach (array("$config/$dir/$file", "$config/$dir/$name/$file", "$dir/$file", "$dir/$name/$file") as $file) {