From 30452bdc98cbc7eb913d5790ffb53ecd51615747 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 2 Jun 2012 17:08:42 -0400 Subject: Fixes #4498 special check for admin pages that are throwing 404 errors - this won't be needed once we get rid of the admin context reminder. We may want to use the admin page shell for the 404 errors then. --- views/default/page/default.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/views/default/page/default.php b/views/default/page/default.php index 892069fad..3724bffd8 100644 --- a/views/default/page/default.php +++ b/views/default/page/default.php @@ -14,7 +14,9 @@ // backward compatability support for plugins that are not using the new approach // of routing through admin. See reportedcontent plugin for a simple example. if (elgg_get_context() == 'admin') { - elgg_deprecated_notice("admin plugins should route through 'admin'.", 1.8); + if (get_input('handler') != 'admin') { + elgg_deprecated_notice("admin plugins should route through 'admin'.", 1.8); + } elgg_admin_add_plugin_settings_menu(); elgg_unregister_css('elgg'); echo elgg_view('page/admin', $vars); -- cgit v1.2.3