summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEarl Miles2011-03-26 18:14:32 (GMT)
committer Earl Miles2011-03-26 18:14:32 (GMT)
commitf372899ce8b458279e435663b8fb42ac09b6cace (patch)
treed9f81dd5a0b466a868b11682cffd42f2ed850964
parent9728052aa364729049a43d935b9faf192594710c (diff)
Issue #1106432#: Show proper text for hide view when views without a path fail validation.
-rw-r--r--handlers/views_handler_argument.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/handlers/views_handler_argument.inc b/handlers/views_handler_argument.inc
index 8d7d342..c47d23d 100644
--- a/handlers/views_handler_argument.inc
+++ b/handlers/views_handler_argument.inc
@@ -459,7 +459,7 @@ class views_handler_argument extends views_handler {
'default only' => TRUE, // this can only be used for missing argument, not validation failure
),
'not found' => array(
- 'title' => t('Show "Page not found"'),
+ 'title' => t('Hide view'),
'method' => 'default_not_found',
'hard fail' => TRUE, // This is a hard fail condition
),
@@ -477,6 +477,10 @@ class views_handler_argument extends views_handler {
),
);
+ if ($this->view->display_handler->has_path()) {
+ $defaults['not found']['title'] = t('Show "Page not found"');
+ }
+
if ($which) {
if (!empty($defaults[$which])) {
return $defaults[$which];