Skip to content

Commit

Permalink
changed admin/design/theme to admin/desing/use_legacy_theme and added…
Browse files Browse the repository at this point in the history
… default value
  • Loading branch information
Aike Terjung committed Jun 12, 2020
1 parent 9dbbc16 commit 47025d7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/code/core/Mage/Adminhtml/Controller/Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ protected function _addJs(Mage_Core_Block_Abstract $block)
public function preDispatch()
{
// get legacy theme choice form backend config
if (Mage::getStoreConfigFlag('admin/design/theme')) {
if (Mage::getStoreConfigFlag('admin/design/use_legacy_theme')) {
$theme = Mage::getConfig()->getNode("stores/admin/design/theme/default");
} else {
$theme = Mage::getConfig()->getNode("stores/admin/design/theme/openmage");
Expand Down
5 changes: 5 additions & 0 deletions app/code/core/Mage/Adminhtml/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,11 @@
<help>
<target_version>ce</target_version>
</help>
<admin>
<design>
<use_legacy_theme>0</use_legacy_theme>
</design>
</admin>
</default>
<stores>
<admin>
Expand Down
4 changes: 2 additions & 2 deletions app/code/core/Mage/Core/etc/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1066,14 +1066,14 @@
<show_in_website>0</show_in_website>
<show_in_store>0</show_in_store>
<fields>
<theme translate="label comment">
<use_legacy_theme translate="label comment">
<label>Enable legacy Admin Theme</label>
<comment>Use legacy theme from Magento CE</comment>
<frontend_type>select</frontend_type>
<source_model>adminhtml/system_config_source_yesno</source_model>
<sort_order>1</sort_order>
<show_in_default>1</show_in_default>
</theme>
</use_legacy_theme>
</fields>
</design>

Expand Down

0 comments on commit 47025d7

Please sign in to comment.