From ed62b081e174a6655d26f0a08f4ff505b3ddf6fa Mon Sep 17 00:00:00 2001 From: Bob den Otter Date: Tue, 2 Dec 2014 15:15:44 +0100 Subject: [PATCH] Update Extension.php --- Extension.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/Extension.php b/Extension.php index 34684ad..05d74c2 100644 --- a/Extension.php +++ b/Extension.php @@ -85,9 +85,6 @@ public function analyticsWidget() // http://www.codediesel.com/php/reading-google-analytics-data-from-php/ // http://code.google.com/p/gapi-google-analytics-php-interface/wiki/UsingFilterControl - $yamlparser = new \Symfony\Component\Yaml\Parser(); - $this->config = $yamlparser->parse(file_get_contents(__DIR__.'/config.yml')); - if (empty($this->config['ga_email'])) { return "ga_email not set in config.yml."; } if (empty($this->config['ga_password'])) { return "ga_password not set in config.yml."; } if (empty($this->config['ga_profile_id'])) { return "ga_profile_id not set in config.yml."; }