summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormducharme2013-01-01 18:55:54 (GMT)
committer Daniel Wehner2013-01-01 18:55:54 (GMT)
commit7dd5de5d00560930b1a6f722b161a315b47f91ce (patch)
tree0bf425a24b7e3182f4686b1b7971da9d226ff45a
parent65bd1c45b199e315a9cb9843eaa524a0e01bcf4b (diff)
Issue #1831142 by damiankloip, mducharme, dawehner: Fixed Path is never empty in option summary.
-rw-r--r--plugins/views_plugin_display_page.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/views_plugin_display_page.inc b/plugins/views_plugin_display_page.inc
index 7a41fe6..6ab95b7 100644
--- a/plugins/views_plugin_display_page.inc
+++ b/plugins/views_plugin_display_page.inc
@@ -251,9 +251,12 @@ class views_plugin_display_page extends views_plugin_display {
),
);
- $path = strip_tags('/' . $this->get_option('path'));
+ $path = strip_tags($this->get_option('path'));
if (empty($path)) {
- $path = t('None');
+ $path = t('No path is set');
+ }
+ else {
+ $path = '/' . $path;
}
$options['path'] = array(