Skip to content

Commit

Permalink
Fix comment. Fix asset publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
Stevad committed Oct 16, 2015
1 parent 5d4bb64 commit 0561fbc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion XHProf.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ final protected function __construct()
}

/**
* Configure instance of XHProf with key-valued array, where key must be available public attribute of the class
* Configure instance of XHProf with key-valued array, where key must be the name of private attribute of the class
* with available public setter method
* @param array $config key-valued list of params
*/
public function configure(array $config)
Expand Down
2 changes: 1 addition & 1 deletion XHProfComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ private function saveReport()
*/
private function initOverlay()
{
$assetPath = Yii::app()->assetManager->publish(__DIR__ . '/assets', false, -1, true);
$assetPath = Yii::app()->assetManager->publish(__DIR__ . '/assets');
Yii::app()->clientScript->registerCssFile($assetPath . '/xhprof.css');
}
}
2 changes: 1 addition & 1 deletion XHProfPanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function getDetail()
XHProf.urlDiffTemplate = '{$urlTemplates['diff']}';
EOD;

$assetPath = Yii::app()->assetManager->publish(__DIR__ . '/assets', false, -1, true);
$assetPath = Yii::app()->assetManager->publish(__DIR__ . '/assets');
/** @var CClientScript $cs */
$cs = Yii::app()->clientScript;
$cs->registerScriptFile($assetPath . '/xhprof.js', CClientScript::POS_HEAD);
Expand Down

0 comments on commit 0561fbc

Please sign in to comment.