From ca3579ce55e58cabc0da57649fc7e0103d4be90c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 29 Jun 2016 00:38:29 +0200 Subject: [PATCH] Replace ->getExceptionID() by logThrowable() --- .../install/files/lib/action/FacebookAuthAction.class.php | 6 ++---- .../install/files/lib/action/GithubAuthAction.class.php | 6 ++---- .../install/files/lib/action/GoogleAuthAction.class.php | 6 ++---- .../install/files/lib/action/TwitterAuthAction.class.php | 6 ++---- 4 files changed, 8 insertions(+), 16 deletions(-) diff --git a/wcfsetup/install/files/lib/action/FacebookAuthAction.class.php b/wcfsetup/install/files/lib/action/FacebookAuthAction.class.php index 675ef3f565..c05fdd5ab7 100644 --- a/wcfsetup/install/files/lib/action/FacebookAuthAction.class.php +++ b/wcfsetup/install/files/lib/action/FacebookAuthAction.class.php @@ -52,8 +52,7 @@ class FacebookAuthAction extends AbstractAction { $content = $reply['body']; } catch (SystemException $e) { - // force logging - $e->getExceptionID(); + \wcf\functions\exception\logThrowable($e); throw new IllegalLinkException(); } @@ -72,8 +71,7 @@ class FacebookAuthAction extends AbstractAction { $content = $reply['body']; } catch (SystemException $e) { - // force logging - $e->getExceptionID(); + \wcf\functions\exception\logThrowable($e); throw new IllegalLinkException(); } diff --git a/wcfsetup/install/files/lib/action/GithubAuthAction.class.php b/wcfsetup/install/files/lib/action/GithubAuthAction.class.php index 5a32ec14f7..7fb4d788de 100644 --- a/wcfsetup/install/files/lib/action/GithubAuthAction.class.php +++ b/wcfsetup/install/files/lib/action/GithubAuthAction.class.php @@ -48,8 +48,7 @@ class GithubAuthAction extends AbstractAction { $content = $reply['body']; } catch (SystemException $e) { - // force logging - $e->getExceptionID(); + \wcf\functions\exception\logThrowable($e); throw new IllegalLinkException(); } @@ -70,8 +69,7 @@ class GithubAuthAction extends AbstractAction { $userData = JSON::decode(StringUtil::trim($reply['body'])); } catch (SystemException $e) { - // force logging - $e->getExceptionID(); + \wcf\functions\exception\logThrowable($e); throw new IllegalLinkException(); } diff --git a/wcfsetup/install/files/lib/action/GoogleAuthAction.class.php b/wcfsetup/install/files/lib/action/GoogleAuthAction.class.php index 1e0b9d166e..9cdab127e3 100644 --- a/wcfsetup/install/files/lib/action/GoogleAuthAction.class.php +++ b/wcfsetup/install/files/lib/action/GoogleAuthAction.class.php @@ -53,8 +53,7 @@ class GoogleAuthAction extends AbstractAction { $content = $reply['body']; } catch (SystemException $e) { - // force logging - $e->getExceptionID(); + \wcf\functions\exception\logThrowable($e); throw new IllegalLinkException(); } @@ -74,8 +73,7 @@ class GoogleAuthAction extends AbstractAction { $content = $reply['body']; } catch (SystemException $e) { - // force logging - $e->getExceptionID(); + \wcf\functions\exception\logThrowable($e); throw new IllegalLinkException(); } diff --git a/wcfsetup/install/files/lib/action/TwitterAuthAction.class.php b/wcfsetup/install/files/lib/action/TwitterAuthAction.class.php index 66388ae5e4..d80c0b0610 100644 --- a/wcfsetup/install/files/lib/action/TwitterAuthAction.class.php +++ b/wcfsetup/install/files/lib/action/TwitterAuthAction.class.php @@ -66,8 +66,7 @@ class TwitterAuthAction extends AbstractAction { $content = $reply['body']; } catch (SystemException $e) { - // force logging - $e->getExceptionID(); + \wcf\functions\exception\logThrowable($e); throw new IllegalLinkException(); } @@ -170,8 +169,7 @@ class TwitterAuthAction extends AbstractAction { $content = $reply['body']; } catch (SystemException $e) { - // force logging - $e->getExceptionID(); + \wcf\functions\exception\logThrowable($e); throw new IllegalLinkException(); } -- 2.20.1