Skip to content

Commit

Permalink
Remove not needed intermediate variable
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Oct 10, 2017
1 parent b97116c commit 9fd9e5d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libraries/common.inc.php
Expand Up @@ -701,8 +701,7 @@
*/
$response = Response::getInstance();
if (isset($_SESSION['profiling'])) {
$header = $response->getHeader();
$scripts = $header->getScripts();
$scripts = $response->getHeader()->header->getScripts();
$scripts->addFile('chart.js');
$scripts->addFile('vendor/jqplot/jquery.jqplot.js');
$scripts->addFile('vendor/jqplot/plugins/jqplot.pieRenderer.js');
Expand Down

0 comments on commit 9fd9e5d

Please sign in to comment.