From b60f6e6b921c2d25867c23790130be9a0386c0a4 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Wed, 23 Jan 2013 07:16:15 -0500 Subject: better solution for 1.7 file compatibility than pull request 471 --- mod/file/start.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mod/file') diff --git a/mod/file/start.php b/mod/file/start.php index 172042332..7ea050ce3 100644 --- a/mod/file/start.php +++ b/mod/file/start.php @@ -121,8 +121,11 @@ function file_page_handler($page) { file_register_toggle(); include "$file_dir/friends.php"; break; - case 'view': case 'read': // Elgg 1.7 compatibility + register_error(elgg_echo("changebookmark")); + forward("file/view/{$page[1]}"); + break; + case 'view': set_input('guid', $page[1]); include "$file_dir/view.php"; break; -- cgit v1.2.3