Replace ->getExceptionID() by logThrowable()
authorTim Düsterhus <duesterhus@woltlab.com>
Tue, 28 Jun 2016 22:38:29 +0000 (00:38 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Tue, 28 Jun 2016 22:38:55 +0000 (00:38 +0200)
wcfsetup/install/files/lib/action/FacebookAuthAction.class.php
wcfsetup/install/files/lib/action/GithubAuthAction.class.php
wcfsetup/install/files/lib/action/GoogleAuthAction.class.php
wcfsetup/install/files/lib/action/TwitterAuthAction.class.php

index 675ef3f565fa3a9ef6d97483579a35b4c93722e6..c05fdd5ab7796015bb3af236272e491166504a05 100644 (file)
@@ -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();
                        }
                        
index 5a32ec14f72a8d99c95d7fb181d47944f022ec93..7fb4d788de0245a625fb47a1c8f6e9402670268a 100644 (file)
@@ -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();
                        }
                        
index 1e0b9d166ec606e68985337d6ba22acfdce468f4..9cdab127e3659533df5a0de4e84aa9dd81b32de8 100644 (file)
@@ -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();
                        }
                        
index 66388ae5e42afc860087af182dcfaa8dbcde4d97..d80c0b061005c0e26598e77552d052e84086c030 100644 (file)
@@ -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();
                }