]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
added text to pages plugin for case where no pages have been created on site
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sun, 13 Mar 2011 16:44:38 +0000 (16:44 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sun, 13 Mar 2011 16:44:38 +0000 (16:44 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8682 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/pages/world.php

index 2a7ea4be98f2802e898daf87f8f573a8fd15958f..668100ad2f325abbc25c4dfb9950562b9c8b105b 100644 (file)
@@ -15,6 +15,9 @@ $content = elgg_list_entities(array(
        'subtypes' => 'page_top',
        'full_view' => false,
 ));
+if (!$content) {
+       $content = '<p>' . elgg_echo('pages:none') . '</p>';
+}
 
 $body = elgg_view_layout('content', array(
        'filter_context' => 'all',