summaryrefslogtreecommitdiffstats
path: root/core/lib/Drupal/Core/Utility/ThemeRegistry.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/lib/Drupal/Core/Utility/ThemeRegistry.php')
-rw-r--r--core/lib/Drupal/Core/Utility/ThemeRegistry.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/core/lib/Drupal/Core/Utility/ThemeRegistry.php b/core/lib/Drupal/Core/Utility/ThemeRegistry.php
index eb2dd80..bc9691c 100644
--- a/core/lib/Drupal/Core/Utility/ThemeRegistry.php
+++ b/core/lib/Drupal/Core/Utility/ThemeRegistry.php
@@ -42,14 +42,12 @@ class ThemeRegistry extends CacheArray {
* The bin to cache the array.
* @param array $tags
* (optional) The tags to specify for the cache item.
- * @param bool $modules_loaded
- * Whether all modules have already been loaded.
*/
- function __construct($cid, $bin, $tags, $modules_loaded = FALSE) {
+ function __construct($cid, $bin, $tags) {
$this->cid = $cid;
$this->bin = $bin;
$this->tags = $tags;
- $this->persistable = $modules_loaded && $_SERVER['REQUEST_METHOD'] == 'GET';
+ $this->persistable = module_load_all(NULL) && $_SERVER['REQUEST_METHOD'] == 'GET';
$data = array();
if ($this->persistable && $cached = cache($this->bin)->get($this->cid)) {