From eac455ee0ef9ef1a8b23f066624a9ac78ed996bf Mon Sep 17 00:00:00 2001 From: cash Date: Sun, 13 Mar 2011 22:15:02 +0000 Subject: Refs #3059 should only fallback to 1.7 pageshell when asking for default page shell - otherwise breaks admin area git-svn-id: http://code.elgg.org/elgg/trunk@8697 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/views.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/lib/views.php b/engine/lib/views.php index ae089add6..460b2c8b5 100644 --- a/engine/lib/views.php +++ b/engine/lib/views.php @@ -602,7 +602,7 @@ function elgg_view_page($title, $body, $page_shell = 'default', $vars = array()) $vars['sysmessages'] = $messages; // check for deprecated view - if (elgg_view_exists('pageshells/pageshell')) { + if ($page_shell == 'default' && elgg_view_exists('pageshells/pageshell')) { elgg_deprecated_notice("pageshells/pageshell is deprecated by page/$page_shell", 1.8); global $CONFIG; -- cgit v1.2.3