diff --git a/handlers/views_handler_argument.inc b/handlers/views_handler_argument.inc index 8d7d342f108cca2e248310e9dd0e55ba66837ae8..c47d23d382625b5f0e35de138da896be31b290cc 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];