From a152d82bda0a09256be77fb9cde9f13bb8e40a14 Mon Sep 17 00:00:00 2001 From: cash Date: Sun, 13 Mar 2011 16:44:38 +0000 Subject: added text to pages plugin for case where no pages have been created on site git-svn-id: http://code.elgg.org/elgg/trunk@8682 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/pages/world.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mod/pages/world.php b/mod/pages/world.php index 2a7ea4be9..668100ad2 100644 --- a/mod/pages/world.php +++ b/mod/pages/world.php @@ -15,6 +15,9 @@ $content = elgg_list_entities(array( 'subtypes' => 'page_top', 'full_view' => false, )); +if (!$content) { + $content = '

' . elgg_echo('pages:none') . '

'; +} $body = elgg_view_layout('content', array( 'filter_context' => 'all', -- cgit v1.2.3