aboutsummaryrefslogtreecommitdiff
path: root/p/api/greader.php
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-10-31 17:21:20 +0100
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-10-31 17:21:20 +0100
commit105729639bd06c27536bbdd2968873046278d59f (patch)
tree30dcf7e3ae471b30810fb22ed701e0bb7d034fc8 /p/api/greader.php
parentcaf98a6468dcea5ae8c38062e4eb527cb3667db9 (diff)
parentee50df518310d3aee5efb5a0c15548b457d10e7e (diff)
Merge branch 'beta' into hotfixes
Diffstat (limited to 'p/api/greader.php')
-rw-r--r--p/api/greader.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/p/api/greader.php b/p/api/greader.php
index 5a6fdad7d..1a66c30fb 100644
--- a/p/api/greader.php
+++ b/p/api/greader.php
@@ -160,7 +160,7 @@ function authorizationToUserConf() {
return $conf;
} else {
logMe('Invalid API authorisation for user ' . $user . ': ' . $headerAuthX[1] . "\n");
- Minz_Log::record('Invalid API authorisation for user ' . $user . ': ' . $headerAuthX[1], Minz_Log::WARNING);
+ Minz_Log::warning('Invalid API authorisation for user ' . $user . ': ' . $headerAuthX[1]);
unauthorized();
}
} else {
@@ -181,7 +181,7 @@ function clientLogin($email, $pass) { //http://web.archive.org/web/2013060409104
$conf = new FreshRSS_Configuration($email);
} catch (Exception $e) {
logMe($e->getMessage() . "\n");
- Minz_Log::record('Invalid API user ' . $email, Minz_Log::WARNING);
+ Minz_Log::warning('Invalid API user ' . $email);
unauthorized();
}
if ($conf->apiPasswordHash != '' && password_verify($pass, $conf->apiPasswordHash)) {
@@ -191,7 +191,7 @@ function clientLogin($email, $pass) { //http://web.archive.org/web/2013060409104
'Auth=', $auth, "\n";
exit();
} else {
- Minz_Log::record('Password API mismatch for user ' . $email, Minz_Log::WARNING);
+ Minz_Log::warning('Password API mismatch for user ' . $email);
unauthorized();
}
} else {