2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
// the database. This is required because this function is called both
// the database. This is required because this function is called both
// before we have a database connection (i.e. during installation) and
// before we have a database connection (i.e. during installation) and
// when a database connection fails.
// when a database connection fails.
elseif(db_is_active()&&(($file=db_result(db_query("SELECT filename FROM {system} WHERE name = '%s' AND type = '%s'",$name,$type)))&&file_exists($file))){
elseif(db_is_active()&&(($file=db_query("SELECT filename FROM {system} WHERE name = :name AND type = :type",array(':name'=>$name,':type'=>$type))->fetchField())&&file_exists($file))){
$files[$type][$name]=$file;
$files[$type][$name]=$file;
}
}
else{
else{
...
@@ -481,10 +481,7 @@ function variable_init($conf = array()) {
...
@@ -481,10 +481,7 @@ function variable_init($conf = array()) {
$variables=$cached->data;
$variables=$cached->data;
}
}
else{
else{
$result=db_query('SELECT * FROM {variable}');
$variables=array_map('unserialize',db_query('SELECT name, value FROM {variable}')->fetchAllKeyed());