- user web: PHP 5.3 compatibility fix, from Nicolas. Fixes #787

svn path=/trunk/boinc/; revision=21878
This commit is contained in:
David Anderson 2010-07-06 23:31:26 +00:00
parent eca79028cc
commit b1851ce02c
3 changed files with 11 additions and 4 deletions

View File

@ -4949,3 +4949,8 @@ David 6 Jul 2010
client/
work_fetch.cpp
David 6 Jul 2010
- user web: PHP 5.3 compatibility fix, from Nicolas. Fixes #787
html/inc/
translation.inc

View File

@ -159,7 +159,7 @@ function getPOLineContent($line, $file){
$start = strpos($line, '"')+1;
$stop = strrpos($line, '"');
$x = substr($line, $start, $stop-$start);
$n = ereg("[^\\]\"", $x);
$n = preg_match("/[^\\\\]\"/", $x);
if ($n) {
echo "ERROR - MISMATCHED QUOTES IN $file: $line\n";
return "";

View File

@ -120,7 +120,9 @@ inline int scaled_max_jobs_per_day(DB_HOST_APP_VERSION& hav, HOST_USAGE& hu) {
}
if (config.debug_quota) {
log_messages.printf(MSG_NORMAL,
"[quota] scaled max jobs per day: %d\n", n
"[quota] [AV#%d] scaled max jobs per day: %d\n",
hav.app_version_id,
n
);
}
return n;
@ -133,8 +135,8 @@ inline bool daily_quota_exceeded(int gavid, HOST_USAGE& hu) {
if (havp->n_jobs_today >= q) {
if (config.debug_quota) {
log_messages.printf(MSG_NORMAL,
"[quota] daily quota exceeded: %d >= %d\n",
havp->n_jobs_today, q
"[quota] [AV#%d] daily quota exceeded: %d >= %d\n",
gavid, havp->n_jobs_today, q
);
}
havp->daily_quota_exceeded = true;