From: Anthony Talarico Date: Fri, 21 Sep 2018 16:55:56 +0000 (-0400) Subject: normalizing the space between the fat arrows in the array keys in the admin hooks... X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=4d40ae3e0da0b34ad6dc8544a1d35ae0a3d435eb;p=WP-Plugins%2Fglm-member-db.git normalizing the space between the fat arrows in the array keys in the admin hooks packaging widget filter --- 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 ) {