Method Name Change For Understanding
This commit is contained in:
parent
701d99e51c
commit
5b7bbb07ca
|
|
@ -7,7 +7,7 @@
|
|||
@section('content')
|
||||
<div class="content">
|
||||
@php
|
||||
$locale = core()->checkRequestedLocaleInChannel();
|
||||
$locale = core()->checkRequestedLocaleCodeInRequestedChannel();
|
||||
$channel = core()->getRequestedChannelCode();
|
||||
$channelLocales = core()->getAllLocalesByRequestedChannelCode()['locales'];
|
||||
@endphp
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
@section('content')
|
||||
<div class="content">
|
||||
@php
|
||||
$locale = core()->checkRequestedLocaleInChannel();
|
||||
$locale = core()->checkRequestedLocaleCodeInRequestedChannel();
|
||||
$channel = core()->getRequestedChannelCode();
|
||||
$channelLocales = core()->getAllLocalesByRequestedChannelCode()['locales'];
|
||||
@endphp
|
||||
|
|
|
|||
|
|
@ -324,11 +324,12 @@ class Core
|
|||
}
|
||||
|
||||
/**
|
||||
* Check requested locale in channel. If not found then set channel default locale.
|
||||
* Check requested locale code in requested channel. If not found,
|
||||
* then set channel default locale code.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function checkRequestedLocaleInChannel()
|
||||
public function checkRequestedLocaleCodeInRequestedChannel()
|
||||
{
|
||||
$localeCode = $this->getRequestedLocaleCode();
|
||||
|
||||
|
|
|
|||
|
|
@ -391,7 +391,7 @@ class Product extends Model implements ProductContract
|
|||
return;
|
||||
}
|
||||
|
||||
$locale = core()->checkRequestedLocaleInChannel();
|
||||
$locale = core()->checkRequestedLocaleCodeInRequestedChannel();
|
||||
$channel = core()->getRequestedChannelCode();
|
||||
|
||||
if ($attribute->value_per_channel) {
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ class ConfigurationController extends Controller
|
|||
*/
|
||||
public function renderMetaData()
|
||||
{
|
||||
$locale = core()->checkRequestedLocaleInChannel();
|
||||
$locale = core()->checkRequestedLocaleCodeInRequestedChannel();
|
||||
|
||||
$channel = core()->getRequestedChannelCode();
|
||||
|
||||
|
|
@ -78,7 +78,7 @@ class ConfigurationController extends Controller
|
|||
*/
|
||||
public function storeMetaData($id)
|
||||
{
|
||||
$locale = core()->checkRequestedLocaleInChannel();
|
||||
$locale = core()->checkRequestedLocaleCodeInRequestedChannel();
|
||||
|
||||
/* check if radio button value */
|
||||
if (request()->get('slides') == "on") {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
@stop
|
||||
|
||||
@php
|
||||
$locale = core()->checkRequestedLocaleInChannel();
|
||||
$locale = core()->checkRequestedLocaleCodeInRequestedChannel();
|
||||
$channel = core()->getRequestedChannelCode();
|
||||
$channelLocales = core()->getAllLocalesByRequestedChannelCode()['locales'];
|
||||
@endphp
|
||||
|
|
|
|||
Loading…
Reference in New Issue