diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-12-09 12:42:33 -0500 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-12-09 12:42:33 -0500 |
commit | 7cbd2c4e1eafb9067e3ceab30a4111b20a3442a7 (patch) | |
tree | 002aab462ded7a4228f80bb193d74ddcfcd7ba5a | |
parent | 6179d2d2361eb885056ebbaddfd501135d7dd613 (diff) |
common_warning() doesn't exist
darcs-hash:20081209174233-84dde-a5593f20cce3af07909ef9b3af7497ff61565fd3.gz
-rw-r--r-- | lib/util.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/util.php b/lib/util.php index 9773d0d03..2484ae6b6 100644 --- a/lib/util.php +++ b/lib/util.php @@ -641,7 +641,7 @@ function common_remembered_user() { list($id, $code) = explode(':', $packed); if (!$id || !$code) { - common_warning('Malformed rememberme cookie: ' . $packed); + common_log(LOG_WARNING, 'Malformed rememberme cookie: ' . $packed); common_forgetme(); return NULL; } @@ -649,13 +649,13 @@ function common_remembered_user() { $rm = Remember_me::staticGet($code); if (!$rm) { - common_warning('No such remember code: ' . $code); + common_log(LOG_WARNING, 'No such remember code: ' . $code); common_forgetme(); return NULL; } if ($rm->user_id != $id) { - common_warning('Rememberme code for wrong user: ' . $rm->user_id . ' != ' . $id); + common_log(LOG_WARNING, 'Rememberme code for wrong user: ' . $rm->user_id . ' != ' . $id); common_forgetme(); return NULL; } @@ -663,7 +663,7 @@ function common_remembered_user() { $user = User::staticGet($rm->user_id); if (!$user) { - common_warning('No such user for rememberme: ' . $rm->user_id); + common_log(LOG_WARNING, 'No such user for rememberme: ' . $rm->user_id); common_forgetme(); return NULL; } @@ -673,7 +673,7 @@ function common_remembered_user() { if (!$result) { common_log_db_error($rm, 'DELETE', __FILE__); - common_warning('Could not delete rememberme: ' . $code); + common_log(LOG_WARNING, 'Could not delete rememberme: ' . $code); common_forgetme(); return NULL; } |