com web/master: Fixed cron script to update voting information for user notes files. The voting information wasn't being added properly (was only
following the full build path).: scripts/update-user-notes
| From: | Sherif Ramadan | Date: | Wed, 12 Dec 2012 19:26:09 +0000 |
| Subject: | com web/master: Fixed cron script to update voting information for user notes files. The voting information wasn't being added properly (was only following the full build path).: scripts/update-user-notes |
||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-15066@lists.php.net to get a copy of this message | ||
Commit: affabf37e0dfa8f66b9dc0adda4ab993484ca92f
Author: Sherif Ramadan <googleguy@php.net> Wed, 12 Dec 2012 14:26:09 -0500
Parents: 3f150de6d8e72fc1d335830e07cc26e5e056d5b2
Branches: master
Link: http://git.php.net/?p=web/master.git;a=commitdiff;h=affabf37e0dfa8f66b9dc0adda4ab993484ca92f
Log:
Fixed cron script to update voting information for user notes files. The voting information
wasn't being added properly (was only following the full build path).
Changed paths:
M scripts/update-user-notes
Diff:
diff --git a/scripts/update-user-notes b/scripts/update-user-notes
index 777a284..09a3bb7 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,$up,$down) = 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);
@@ -72,7 +72,7 @@ while (!feof($fp)) {
echo "note id $note is broken";
} else {
$note = gzuncompress(base64_decode($note)) or die ("$id failed\n");
- fputs($nf, "$id|$sect|$rate|$ts|$user|" . base64_encode($note) . "\n");
+ fputs($nf, "$id|$sect|$rate|$ts|$user|" . base64_encode($note) .
"|$up|$down\n");
if (BUILD_COMPLETE_FILE) {
fputs($bz, "$id|$sect|$rate|$ts|$user|" . base64_encode($note) .
"|$up|$down\n");
}