File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed
app/code/Magento/Store/Model Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -801,16 +801,24 @@ public function isUrlSecure()
801
801
/**
802
802
* Check if request was secure
803
803
*
804
- * @return boolean
804
+ * @return bool
805
805
*/
806
806
public function isCurrentlySecure ()
807
807
{
808
808
if ($ this ->_request ->isSecure ()) {
809
809
return true ;
810
810
}
811
811
812
- $ secureBaseUrl = $ this ->_config ->getValue (self ::XML_PATH_SECURE_BASE_URL , ScopeInterface::SCOPE_STORE );
813
- $ secureFrontend = $ this ->_config ->getValue (self ::XML_PATH_SECURE_IN_FRONTEND , ScopeInterface::SCOPE_STORE );
812
+ $ secureBaseUrl = $ this ->_config ->getValue (
813
+ self ::XML_PATH_SECURE_BASE_URL ,
814
+ ScopeInterface::SCOPE_STORE ,
815
+ $ this ->getId ()
816
+ );
817
+ $ secureFrontend = $ this ->_config ->getValue (
818
+ self ::XML_PATH_SECURE_IN_FRONTEND ,
819
+ ScopeInterface::SCOPE_STORE ,
820
+ $ this ->getId ()
821
+ );
814
822
815
823
if (!$ secureBaseUrl || !$ secureFrontend ) {
816
824
return false ;
@@ -819,8 +827,8 @@ public function isCurrentlySecure()
819
827
$ uri = UriFactory::factory ($ secureBaseUrl );
820
828
$ port = $ uri ->getPort ();
821
829
$ serverPort = $ this ->_request ->getServer ('SERVER_PORT ' );
822
- $ isSecure = $ uri -> getScheme () == ' https ' && isset ( $ serverPort ) && $ port == $ serverPort ;
823
- return $ isSecure ;
830
+
831
+ return $ uri -> getScheme () == ' https ' && isset ( $ serverPort ) && $ port == $ serverPort ;
824
832
}
825
833
826
834
/*************************************************************************************
You can’t perform that action at this time.
0 commit comments