Browse files

Updated dashboard code to reflect changes in the Dashboard API (setCo…

…ntentProvider).
  • Loading branch information...
1 parent aaa78dd commit 2bcda4ca13c5a55f4158f40f8fa4ddffd8fad67b @jakr committed Jul 31, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 code/ProfilerLogViewerController.php
View
5 code/ProfilerLogViewerController.php
@@ -4,7 +4,8 @@
*
* @package dbprofiler
*/
-class ProfilerLogViewerController extends ContentController {
+require_once '../developer_dashboard/code/DashboardPanelContentProvider.php';
+class ProfilerLogViewerController extends ContentController implements DashboardPanelContentProvider {
/**
*
@@ -136,7 +137,7 @@ public function getPanelContent(DashboardPanel $panel){
private function addDashboardPanel(){
$this->index(); //include requirements.
$panel = new DashboardPanel('Queries');
- $panel->setFormContentCallback($this);
+ $panel->setContentProvider($this);
DeveloperDashboard::inst()->addPanel($panel);
}

0 comments on commit 2bcda4c

Please sign in to comment.