From: Sam Boyer Date: Thu, 21 Aug 2008 21:25:54 +0000 (+0000) Subject: removed too over-cleverness from the fetch* functions X-Git-Tag: 6.x-2.0-alpha1~38 X-Git-Url: http://drupalcode.org/project/panels.git/commitdiff_plain/e8f3a038cff490e509b933900123d22a6c3e87be removed too over-cleverness from the fetch* functions --- diff --git a/panels_page/panels_page.read.inc b/panels_page/panels_page.read.inc index 715e9e7..f4e5b15 100644 --- a/panels_page/panels_page.read.inc +++ b/panels_page/panels_page.read.inc @@ -177,10 +177,8 @@ function panels_page_set_current(&$panel_page) { * returned in its stead. */ function panels_page_fetch_display(&$panel_page, $id = NULL) { - $which = empty($id) ? 'primary' : 'alternate'; - $function = "panels_page_fetch_{$which}_display"; - // Redirect to the appropriate fetcher depending on whether $id is provided - $function($panel_page, $id); + // Redirect to the appropriate fetcher depending on whether $id is provided + empty($id) ? panels_page_fetch_primary_display($panel_page) : panels_page_fetch_alternate_display($panel_page, $id); } /**