Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

.

  • Loading branch information...
commit c48f00d2df1793a03f89ddfc9f5f4c34176e5b79 1 parent f11235f
@davglass authored
Showing with 1 addition and 7 deletions.
  1. +1 −7 index.php
View
8 index.php
@@ -41,7 +41,7 @@
}
$version = explode('/', $files[0]);
$version = $version[0];
-$build = str_replace('yui'.$_GET['version'].'-', '', $version[0]);
+$build = str_replace('yui'.$_GET['version'].'-', '', $version);
$pre = '/tmp/yuidev/lib/';
if (!is_dir($pre)) {
@@ -67,18 +67,12 @@ function getCache($sha1) {
function writeFiles($files, $sha1) {
global $pre, $version, $build;
- $counter = 0;
$out = '';
foreach ($files as $k => $file) {
if (@is_file($pre.$file)) {
- $counter++;
$out .= @file_get_contents($pre.$file)."\n";
}
}
- if ($counter != sizeOf($files)) {
- echo('<strong>Error:</strong> No files found.');
- exit;
- }
$out = str_replace('@VERSION@', $version, $out);
$out = str_replace('@BUILD@', $build, $out);
apc_store('combo-'.$sha1, $out, 1800);
Please sign in to comment.
Something went wrong with that request. Please try again.