Skip to content

Commit

Permalink
remove possibility to disable sparklines ($enableSparklineImages)
Browse files Browse the repository at this point in the history
  • Loading branch information
Findus23 authored and sgiehl committed Mar 30, 2018
1 parent 0b50488 commit 6d963cb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions core/Visualization/Sparkline.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ class Sparkline implements ViewInterface
const DEFAULT_WIDTH = 200;
const DEFAULT_HEIGHT = 50;

public static $enableSparklineImages = true;

/**
* Width of the sparkline
Expand Down Expand Up @@ -158,9 +157,7 @@ private function setSparklineColors($sparkline) {
}

public function render() {
if (self::$enableSparklineImages) {
$this->sparkline->display();
}
$this->sparkline->display();
$this->sparkline->destroy();
}
}
1 change: 0 additions & 1 deletion tests/PHPUnit/Framework/TestingEnvironmentManipulator.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ public function onEnvironmentBootstrapped()
}

\Piwik\Plugins\CoreVisualizations\Visualizations\Cloud::$debugDisableShuffle = true;
\Piwik\Visualization\Sparkline::$enableSparklineImages = true;
\Piwik\Plugins\ExampleUI\API::$disableRandomness = true;

if ($this->vars->deleteArchiveTables
Expand Down

0 comments on commit 6d963cb

Please sign in to comment.