From: Cash Costello Date: Sat, 2 Jun 2012 21:08:42 +0000 (-0400) Subject: Fixes #4498 special check for admin pages that are throwing 404 errors - this won... X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=30452bdc98cbc7eb913d5790ffb53ecd51615747;p=lorea%2Felgg.git 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. --- 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);