Browse Source

Use a class constant for easier extandability.

Mark S 9 years ago
parent
commit
ecb3d33462
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Controller/Component/AuthComponent.php

+ 1 - 1
src/Controller/Component/AuthComponent.php

@@ -760,7 +760,7 @@ class AuthComponent extends Component
      */
     public function redirectUrl($url = null)
     {
-        $redirectUrl = $this->request->query(self::QUERY_STRING_REDIRECT);
+        $redirectUrl = $this->request->query(static::QUERY_STRING_REDIRECT);
         if ($redirectUrl && (substr($redirectUrl, 0, 1) !== '/')) {
             $redirectUrl = null;
         }