Commits

Anonymous committed 9751ada

Fixed engine option. Removed some obsolete code and print_r.

Comments (0)

Files changed (1)

 {
   private $_code;
 
-  public function highcharts($name, $options)
+  public function highcharts($name, $options, $engine='jquery')
   {
-    $this->_code = $this->build_code($name, $options, 'jquery');
+    $this->_code = $this->build_code($name, $options, $engine);
   }
 
   private function build_code($name, $options, $engine='jquery')
   private function build_option($key, $options)
   {
     $code = $key . ': ';
-    $array_keys = array_keys($options);
-    print_r($array_keys);
     if (!is_array($options[0])) //TODO: Fix this notice
       $code .= $this->build_properties($options);
     else