Skip to content

Commit

Permalink
Specify the Google Analytics tmp folder
Browse files Browse the repository at this point in the history
This prevents some errors on shared host and makes use of a known Symphony folder which should be writable.
  • Loading branch information
nitriques committed Aug 4, 2015
1 parent 944a43c commit 6cb6220
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions extension.driver.php
Expand Up @@ -185,6 +185,7 @@ public function dashboard_panel_validate($context) {

public static function createClient(array $config, $panelId) {
$client = new Google_Client();
$client->setClassConfig('Google_Cache_File', 'directory', TMP);
$keyfile = $config['keyfile'];
if (strpos($keyfile, '/') !== 0) {
$keyfile = DOCROOT . '/' . $keyfile;
Expand Down

0 comments on commit 6cb6220

Please sign in to comment.