aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-06-02 17:08:42 -0400
committerCash Costello <cash.costello@gmail.com>2012-06-02 17:08:42 -0400
commit30452bdc98cbc7eb913d5790ffb53ecd51615747 (patch)
tree8b9ea88aee6459efbbded8c579992fed63dc649b /views
parent7c18f2d39699fa298227d87ac531305de296c747 (diff)
downloadelgg-30452bdc98cbc7eb913d5790ffb53ecd51615747.tar.gz
elgg-30452bdc98cbc7eb913d5790ffb53ecd51615747.tar.bz2
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.
Diffstat (limited to 'views')
-rw-r--r--views/default/page/default.php4
1 files changed, 3 insertions, 1 deletions
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);