Security update for Core, with self-updated composer
[yaffs-website] / web / core / lib / Drupal / Core / Extension / module.api.php
index 944d3547b78f5463a86dfb1190b03d5793ff1e9e..17627523644dda193c5ee4af4174ac74a8a0de1d 100644 (file)
@@ -9,7 +9,6 @@ use Drupal\Core\Database\Database;
 use Drupal\Core\Url;
 use Drupal\Core\Utility\UpdateException;
 
-
 /**
  * @defgroup update_api Update API
  * @{
@@ -230,8 +229,7 @@ function hook_modules_installed($modules) {
 function hook_install() {
   // Create the styles directory and ensure it's writable.
   $directory = file_default_scheme() . '://styles';
-  $mode = isset($GLOBALS['install_state']['mode']) ? $GLOBALS['install_state']['mode'] : NULL;
-  file_prepare_directory($directory, FILE_CREATE_DIRECTORY | FILE_MODIFY_PERMISSIONS, $mode);
+  file_prepare_directory($directory, FILE_CREATE_DIRECTORY | FILE_MODIFY_PERMISSIONS);
 }
 
 /**
@@ -449,8 +447,7 @@ function hook_install_tasks(&$install_state) {
     // tasks are complete, with a link to reload the current page and therefore
     // pass on to the final Drupal installation tasks when the user is ready to
     // do so).
-    'myprofile_final_site_setup' => [
-    ],
+    'myprofile_final_site_setup' => [],
   ];
   return $tasks;
 }