Version 5.0.0 beta 3
This commit is contained in:
1 parent
f61b0da85d
commit
e86153356a
108 files changed
+2927
-1573
No files matched your search
@@ -242,7 +242,7 @@ class Setting extends Model
|
||||
*/
|
||||
public function get_name() : string
|
||||
{
|
||||
return Member::loggedIn()->language()->addToStack( 'themeeditor_var_' . $this->id );
|
||||
return Member::loggedIn()->language()->addToStack( 'themeeditor_var_' . $this->key );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -250,9 +250,9 @@ class Setting extends Model
|
||||
*/
|
||||
public function get_desc() : string
|
||||
{
|
||||
if( Member::loggedIn()->language()->checkKeyExists( 'themeeditor_var_' . $this->id . '_desc' ) )
|
||||
if( Member::loggedIn()->language()->checkKeyExists( 'themeeditor_var_' . $this->key . '_desc' ) )
|
||||
{
|
||||
return Member::loggedIn()->language()->addToStack( 'themeeditor_var_' . $this->id . '_desc' );
|
||||
return Member::loggedIn()->language()->addToStack( 'themeeditor_var_' . $this->key . '_desc' );
|
||||
}
|
||||
|
||||
return '';
|
||||
@@ -489,12 +489,12 @@ class Setting extends Model
|
||||
{
|
||||
$form->add( new Translatable( 'themeeditor_setting_name', null, true, array(
|
||||
'app' => 'core',
|
||||
'key' => ( $this->id ? 'themeeditor_var_' . $this->id : null )
|
||||
'key' => ( $this->id ? 'themeeditor_var_' . $this->key : null )
|
||||
) ) );
|
||||
|
||||
$form->add( new Translatable( 'themeeditor_setting_desc', null, false, array(
|
||||
'app' => 'core',
|
||||
'key' => ( $this->id ? 'themeeditor_var_' . $this->id . '_desc' : null )
|
||||
'key' => ( $this->id ? 'themeeditor_var_' . $this->key . '_desc' : null )
|
||||
) ) );
|
||||
|
||||
$form->add( new Text( 'themeeditor_setting_key', $this->key, true, array(
|
||||
|
||||
Reference in new issue
Block a user