From: cash Date: Sun, 13 Mar 2011 16:44:38 +0000 (+0000) Subject: added text to pages plugin for case where no pages have been created on site X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=a152d82bda0a09256be77fb9cde9f13bb8e40a14;p=lorea%2Felgg.git 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 --- 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',