com web/master: Had to fix the cron script as it was discarding the vote information in the pipe.: scripts/update-user-notes
| From: | Sherif Ramadan | Date: | Wed, 12 Dec 2012 19:00:34 +0000 |
| Subject: | com web/master: Had to fix the cron script as it was discarding the vote information in the pipe.: scripts/update-user-notes | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-15065@lists.php.net to get a copy of this message | ||
Commit: 3f150de6d8e72fc1d335830e07cc26e5e056d5b2
Author: Sherif Ramadan <googleguy@php.net> Wed, 12 Dec 2012 14:00:34 -0500
Parents: 66cab007ef9f49c4cfd35851cc504b3461a9889a
Branches: master
Link: http://git.php.net/?p=web/master.git;a=commitdiff;h=3f150de6d8e72fc1d335830e07cc26e5e056d5b2
Log:
Had to fix the cron script as it was discarding the vote information in the pipe.
Changed paths:
M scripts/update-user-notes
Diff:
diff --git a/scripts/update-user-notes b/scripts/update-user-notes
index 64ac120..777a284 100755
--- a/scripts/update-user-notes
+++ b/scripts/update-user-notes
@@ -53,7 +53,7 @@ while (!feof($fp)) {
continue; # skip invalid lines
}
- list($id,$sect,$rate,$ts,$user,$note) = explode("|",$line);
+ @list($id,$sect,$rate,$ts,$user,$note,$up,$down) = explode("|",$line);
$hash = substr(md5($sect),0,16);
@mkdir($root.substr($hash,0,2),0755);
@@ -74,7 +74,7 @@ while (!feof($fp)) {
$note = gzuncompress(base64_decode($note)) or die ("$id failed\n");
fputs($nf, "$id|$sect|$rate|$ts|$user|" . base64_encode($note) . "\n");
if (BUILD_COMPLETE_FILE) {
- fputs($bz, "$id|$sect|$rate|$ts|$user|" . base64_encode($note) .
"\n");
+ fputs($bz, "$id|$sect|$rate|$ts|$user|" . base64_encode($note) .
"|$up|$down\n");
}
fclose($nf);
}