Fix on External Url Service

fixed bad reference

Change-Id: Iaa7c6de7f86e9cfe0510a8de641ad475e422c4a0
This commit is contained in:
Sebastian Marcet 2016-03-24 08:46:11 -03:00
parent 4d339e1eb4
commit faf21175fe
1 changed files with 6 additions and 7 deletions

View File

@ -15,7 +15,7 @@
namespace services\utils;
use Jenssegers\Agent\Agent;
use services\facades\ServerConfigurationService;
use services\facades\ServerConfigurationService as ConfigFacade;
/**
@ -27,17 +27,16 @@ final class ExternalUrlService
public function getCreateAccountUrl(){
$agent = new Agent();
$path = $agent->isMobile() ? 'join/register/mobile/community' : 'join/register';
$url = sprintf("%s%s",ServerConfigurationService::getConfigValue("Assets.Url"),$path);
return $url;
return sprintf("%s%s",ConfigFacade::getConfigValue("Assets.Url"),$path);
}
public function getVerifyAccountUrl(){
$url = ServerConfigurationService::getConfigValue("Assets.Url").'members/verification/resend';
return $url;
$path = 'members/verification/resend';
return sprintf("%s%s",ConfigFacade::getConfigValue("Assets.Url"),$path);
}
public function getForgotPasswordUrl(){
$url = ServerConfigurationService::getConfigValue("Assets.Url").'Security/lostpassword';
return $url;
$path = 'Security/lostpassword';
return sprintf("%s%s",ConfigFacade::getConfigValue("Assets.Url"),$path);
}
}