Browse Source

Fix on External Url Service

fixed bad reference

Change-Id: Iaa7c6de7f86e9cfe0510a8de641ad475e422c4a0
Sebastian Marcet 3 years ago
parent
commit
faf21175fe
1 changed files with 6 additions and 7 deletions
  1. 6
    7
      app/services/utils/ExternalUrlService.php

+ 6
- 7
app/services/utils/ExternalUrlService.php View File

@@ -15,7 +15,7 @@
15 15
 namespace services\utils;
16 16
 
17 17
 use Jenssegers\Agent\Agent;
18
-use services\facades\ServerConfigurationService;
18
+use services\facades\ServerConfigurationService as ConfigFacade;
19 19
 
20 20
 
21 21
 /**
@@ -27,17 +27,16 @@ final class ExternalUrlService
27 27
     public function getCreateAccountUrl(){
28 28
         $agent = new Agent();
29 29
         $path  = $agent->isMobile() ? 'join/register/mobile/community' : 'join/register';
30
-        $url   = sprintf("%s%s",ServerConfigurationService::getConfigValue("Assets.Url"),$path);
31
-        return $url;
30
+        return sprintf("%s%s",ConfigFacade::getConfigValue("Assets.Url"),$path);
32 31
     }
33 32
 
34 33
     public function getVerifyAccountUrl(){
35
-        $url = ServerConfigurationService::getConfigValue("Assets.Url").'members/verification/resend';
36
-        return $url;
34
+        $path  = 'members/verification/resend';
35
+        return sprintf("%s%s",ConfigFacade::getConfigValue("Assets.Url"),$path);
37 36
     }
38 37
 
39 38
     public function getForgotPasswordUrl(){
40
-        $url = ServerConfigurationService::getConfigValue("Assets.Url").'Security/lostpassword';
41
-        return $url;
39
+        $path  = 'Security/lostpassword';
40
+        return sprintf("%s%s",ConfigFacade::getConfigValue("Assets.Url"),$path);
42 41
     }
43 42
 }

Loading…
Cancel
Save