File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -121,10 +121,10 @@ public static function init( $service_settings = [] ) {
121121 self ::$ secret = trim ( $ service_settings ['secret ' ] );
122122 }
123123 self ::$ service_url = sprintf ( 'https://%s.%s ' , self ::$ key , self ::$ base_domain );
124- if ( isset ( $ service_settings ['domain ' ] ) && ! empty ( $ service_settings ['domain ' ] ) ) {
125- self ::$ service_url = sprintf ( 'https://%s ' , $ service_settings ['domain ' ] );
126- } elseif ( defined ( 'OPTML_CUSTOM_DOMAIN ' ) ) {
124+ if ( defined ( 'OPTML_CUSTOM_DOMAIN ' ) ) {
127125 self ::$ service_url = constant ( 'OPTML_CUSTOM_DOMAIN ' );
126+ } elseif ( isset ( $ service_settings ['domain ' ] ) && ! empty ( $ service_settings ['domain ' ] ) ) {
127+ self ::$ service_url = sprintf ( 'https://%s ' , $ service_settings ['domain ' ] );
128128 }
129129
130130 $ options = [ 'domain ' => parse_url ( self ::$ service_url , PHP_URL_HOST ) ];
You can’t perform that action at this time.
0 commit comments