diff --git a/public/include/classes/news.class.php b/public/include/classes/news.class.php index f83e4253..f71ab7d8 100644 --- a/public/include/classes/news.class.php +++ b/public/include/classes/news.class.php @@ -102,4 +102,5 @@ $news = new News(); $news->setDebug($debug); $news->setMysql($mysqli); $news->setUser($user); +$news->setErrorCodes($aErrorCodes); ?> diff --git a/public/include/classes/token.class.php b/public/include/classes/token.class.php index 39be5bce..4bcfc033 100644 --- a/public/include/classes/token.class.php +++ b/public/include/classes/token.class.php @@ -36,6 +36,7 @@ class Token Extends Base { * @param account_id int Account id of user * @param token string Token to check * @param type int Type of token + * @param checkTimeExplicitly Check the token time for expiration; can cause issues w/ timezone & sync * @return int 0 or 1 */ public function isTokenValid($account_id, $token, $type, $checkTimeExplicitly=false) {