Skip to content

Commit

Permalink
DebugPanel - changed api_url to base_uri parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverFire committed Jun 29, 2016
1 parent 560d87c commit bb80099
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DebugPanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ public function getDetail()
// Try to get API URL
try {
$component = \Yii::$app->get('hiart');
$apiUrl = (StringHelper::endsWith($component->config['api_url'],
'/')) ? $component->config['api_url'] : $component->config['api_url'] . '/';
$apiUrl = (StringHelper::endsWith($component->config['base_uri'],
'/')) ? $component->config['base_uri'] : $component->config['base_uri'] . '/';
} catch (\yii\base\InvalidConfigException $e) {
// Pass
}
Expand Down

0 comments on commit bb80099

Please sign in to comment.