return $v;
}
+ $versions = self::getPhonegapVersions();
+ return array_pop($versions);
+ }
+
+ public static function getPhonegapVersions() {
$versions = array();
$dr = opendir(WS_COMPILE_ASSETS . '/_html5/js/libs/phonegap');
$versions[] = $file;
}
usort($versions, 'version_compare');
- return array_pop($versions);
+ $versions=array_reverse($versions, true);
+ return $versions;
}
public function getCssScale() {
}
}
- $vars = array('titre', 'credits', 'ga', 'style', 'script', 'pagesContents', 'description', 'print', 'hiddenContents', 'splash','cache');
+ $vars = array('titre', 'credits', 'ga', 'style', 'script', 'pagesContents', 'description', 'print', 'hiddenContents', 'splash', 'cache');
foreach ($vars as $v) {
$html = str_replace('<!-- $' . $v . ' -->', $$v, $html);
}
$thtml = $uhtml;
- $vars = array('titre', 'credits', 'ga', 'style', 'script', 'pagesContents', 'print', 'hiddenContents', 'splash','cache');
+ $vars = array('titre', 'credits', 'ga', 'style', 'script', 'pagesContents', 'print', 'hiddenContents', 'splash', 'cache');
foreach ($vars as $v) {
$uhtml = str_replace('<!-- $' . $v . ' -->', $$v, $uhtml);
}