$standardPlugins = isset($this->phonegapStandardPlugins[$this->phonegap]) ? $this->phonegapStandardPlugins[$this->phonegap] : array();
- foreach($standardPlugins as $p){
- copy($this->assets . '/js/libs/phonegap/plugins/'.$this->phonegap.'/'.$p.'.js', $this->vdir . '/data/'.$p.'.js');
- $script .= '<script type="text/javascript" src="data/'.$p.'.js"></script>' . "\n";
+ fb($standardPlugins);
+ foreach ($standardPlugins as $p) {
+ $to = $this->vdir . '/data/' . $p . '.js';
+ copy($this->assets . '/js/libs/phonegap/plugins/' . $this->phonegap . '/' . $p . '.js', $to);
+ $script .= '<script type="text/javascript" src="data/' . $p . '.js"></script>' . "\n";
}
$plugins = explode("\n", $this->book->parametres->phonegapPlugins);