diff options
author | Cash Costello <cash.costello@gmail.com> | 2011-11-03 07:17:38 -0400 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2011-11-03 07:17:38 -0400 |
commit | 21f67d2117ed460c7d8374c9b42348e2eea2b0f4 (patch) | |
tree | cdb6e1088c44a3da99e530f121be4329b34920b9 /mod/file | |
parent | e66bfc0434876327e7993382041db51d21b60f42 (diff) | |
download | elgg-21f67d2117ed460c7d8374c9b42348e2eea2b0f4.tar.gz elgg-21f67d2117ed460c7d8374c9b42348e2eea2b0f4.tar.bz2 |
Fixes #4042 made sure empty content pages had a message about no content
Diffstat (limited to 'mod/file')
-rw-r--r-- | mod/file/languages/en.php | 2 | ||||
-rw-r--r-- | mod/file/pages/file/world.php | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/mod/file/languages/en.php b/mod/file/languages/en.php index 96fbd1c48..c4d5a4f88 100644 --- a/mod/file/languages/en.php +++ b/mod/file/languages/en.php @@ -95,7 +95,7 @@ $english = array( * Error messages */ - 'file:none' => "No files uploaded.", + 'file:none' => "No files.", 'file:uploadfailed' => "Sorry; we could not save your file.", 'file:downloadfailed' => "Sorry; this file is not available at this time.", 'file:deletefailed' => "Your file could not be deleted at this time.", diff --git a/mod/file/pages/file/world.php b/mod/file/pages/file/world.php index e438ca2f0..770dfd6e8 100644 --- a/mod/file/pages/file/world.php +++ b/mod/file/pages/file/world.php @@ -19,6 +19,9 @@ $content = elgg_list_entities(array( 'limit' => $limit, 'full_view' => FALSE )); +if (!$content) { + $content = elgg_echo('file:none'); +} $sidebar = file_get_type_cloud(); $sidebar = elgg_view('file/sidebar'); |