From 4d40ae3e0da0b34ad6dc8544a1d35ae0a3d435eb Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Fri, 21 Sep 2018 12:55:56 -0400 Subject: [PATCH] normalizing the space between the fat arrows in the array keys in the admin hooks packaging widget filter --- models/admin/newDashboard/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/models/admin/newDashboard/index.php b/models/admin/newDashboard/index.php index ba8459e8..16e1bf1f 100644 --- a/models/admin/newDashboard/index.php +++ b/models/admin/newDashboard/index.php @@ -199,7 +199,7 @@ class GlmMembersAdmin_newDashboard_index extends GlmDataMembers } // Not sure how to make the 'callback' use $this-> or this could get pulled out - function orderSort ($a, $b) { return (strcmp ($a['order'],$b['order'])); } + // function orderSort ($a, $b) { return (strcmp ($a['order'],$b['order'])); } // In case we want to treat the widget data before sending it to the viewfile. // May be able to avoid sending the (huge) Config array to the view @@ -213,7 +213,7 @@ class GlmMembersAdmin_newDashboard_index extends GlmDataMembers $addons[$a['slug']]['widgetData'] = $this->queryWidgetLists($addons[$a['slug']]['widgetData']); // Sort the component list based on the 'order' - uasort($addons[$a['slug']]['widgetData']['components'], 'orderSort'); + uasort($addons[$a['slug']]['widgetData']['components'], array($this, 'orderSort') ) ; } else { echo "
" . $a['slug'] . " has no filter called " . $a['slug'] . "-dashboard-widget"; } @@ -246,7 +246,7 @@ class GlmMembersAdmin_newDashboard_index extends GlmDataMembers } - // public function orderSort ($a, $b) { return (strcmp ($a['order'],$b['order'])); } + public function orderSort ($a, $b) { return (strcmp ($a['order'],$b['order'])); } public function queryWidgetLists( &$widgetData = false ) { -- 2.17.1