Fixed template scripting in language variables for 3rd party auth errors
authorMarcel Werk <burntime@woltlab.com>
Fri, 9 Dec 2016 23:11:44 +0000 (00:11 +0100)
committerMarcel Werk <burntime@woltlab.com>
Fri, 9 Dec 2016 23:11:44 +0000 (00:11 +0100)
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 a5c6bca793814dd6b986fbcb9c3bc9674e0540ce..f5e95bd87e7c4b40fddf354f7fe54b9f3e6a0b67 100644 (file)
@@ -134,7 +134,7 @@ class FacebookAuthAction extends AbstractAction {
                }
                // user declined or any other error that may occur
                if (isset($_GET['error'])) {
-                       throw new NamedUserException(WCF::getLanguage()->get('wcf.user.3rdparty.facebook.login.error.'.$_GET['error']));
+                       throw new NamedUserException(WCF::getLanguage()->getDynamicVariable('wcf.user.3rdparty.facebook.login.error.'.$_GET['error']));
                }
                
                // start auth by redirecting to facebook
index 7fb4d788de0245a625fb47a1c8f6e9402670268a..e836f27efd75efed6f522049540a7765b615a199 100644 (file)
@@ -152,7 +152,7 @@ class GithubAuthAction extends AbstractAction {
                }
                // user declined or any other error that may occur
                if (isset($_GET['error'])) {
-                       throw new NamedUserException(WCF::getLanguage()->get('wcf.user.3rdparty.github.login.error.'.$_GET['error']));
+                       throw new NamedUserException(WCF::getLanguage()->getDynamicVariable('wcf.user.3rdparty.github.login.error.'.$_GET['error']));
                }
                
                // start auth by redirecting to github
index 6f40840b4284a65c3a26c5f5f00f78950eabb0e3..3ba2a4761ac36cec86eaccd55dcc54285f30932e 100644 (file)
@@ -138,7 +138,7 @@ class GoogleAuthAction extends AbstractAction {
                }
                // user declined or any other error that may occur
                if (isset($_GET['error'])) {
-                       throw new NamedUserException(WCF::getLanguage()->get('wcf.user.3rdparty.google.login.error.'.$_GET['error']));
+                       throw new NamedUserException(WCF::getLanguage()->getDynamicVariable('wcf.user.3rdparty.google.login.error.'.$_GET['error']));
                }
                
                // start auth by redirecting to google
index 360d96bc065472f45e975bf637b1f067f2452ff5..170cdfe379349bf173d52fc065a2ef77b0bf2952 100644 (file)
@@ -141,7 +141,7 @@ class TwitterAuthAction extends AbstractAction {
                
                // user declined
                if (isset($_GET['denied'])) {
-                       throw new NamedUserException(WCF::getLanguage()->get('wcf.user.3rdparty.twitter.login.error.denied'));
+                       throw new NamedUserException(WCF::getLanguage()->getDynamicVariable('wcf.user.3rdparty.twitter.login.error.denied'));
                }
                
                // start auth by fetching request_token