Skip to content
Snippets Groups Projects
Commit 9d3e8593 authored by Daniel Wehner's avatar Daniel Wehner Committed by Tim Plunkett
Browse files

Issue #1802966 by dawehner: Replace ->disabled by not isEnabled().

parent bb1fa1f9
No related branches found
No related tags found
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
...@@ -1522,7 +1522,7 @@ public function executeHookBlockList($display_id = NULL) { ...@@ -1522,7 +1522,7 @@ public function executeHookBlockList($display_id = NULL) {
*/ */
public function access($displays = NULL, $account = NULL) { public function access($displays = NULL, $account = NULL) {
// Noone should have access to disabled views. // Noone should have access to disabled views.
if (!empty($this->storage->disabled)) { if (!$this->storage->isEnabled()) {
return FALSE; return FALSE;
} }
......
...@@ -721,7 +721,7 @@ function views_block_info() { ...@@ -721,7 +721,7 @@ function views_block_info() {
$views = views_get_all_views(); $views = views_get_all_views();
foreach ($views as $view) { foreach ($views as $view) {
// disabled views get nothing. // disabled views get nothing.
if (!empty($view->disabled)) { if (!$view->isEnabled()) {
continue; continue;
} }
...@@ -1543,7 +1543,7 @@ function views_get_applicable_views($type) { ...@@ -1543,7 +1543,7 @@ function views_get_applicable_views($type) {
foreach ($views as $view) { foreach ($views as $view) {
// Skip disabled views. // Skip disabled views.
if (!empty($view->disabled)) { if (!$view->isEnabled()) {
continue; continue;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment