Skip to content

Commit

Permalink
Minor code changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ihorvansach committed Jul 17, 2020
1 parent 2d314de commit 017423f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
3 changes: 3 additions & 0 deletions Model/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ public function isEnabled()
*/
public function isKeyMissing()
{
return false;
/*
$path = explode('/', self::XML_PATH_KEY);
$path = $path[0];
Expand All @@ -87,6 +89,7 @@ public function isKeyMissing()
return !$this->getConfig(
self::XML_PATH_KEY
) && $section->getModule();
*/
}

/**
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"magefan/module-community" : ">=2.0.12"
},
"type": "magento2-module",
"version": "2.2.5",
"version": "2.2.6",
"autoload": {
"files": [ "registration.php" ],
"psr-4": {
Expand Down
4 changes: 0 additions & 4 deletions etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@
<label>Enable Extension</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="key" translate="label" type="text" sortOrder="15" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Product Key</label>
<frontend_model>Magefan\Community\Block\Adminhtml\System\Config\Form\ProductKeyField</frontend_model>
</field>
<field id="disable_page_cache" translate="label comment" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Disable Page Cache For Admin User</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
Expand Down
2 changes: 0 additions & 2 deletions etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
<mfloginascustomer>
<general>
<enabled>0</enabled>
<mfmodule>LoginAsCustomer</mfmodule>
<mftype>1</mftype>
</general>
</mfloginascustomer>
</default>
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Magefan_LoginAsCustomer" setup_version="2.2.5">
<module name="Magefan_LoginAsCustomer" setup_version="2.2.6">
<sequence>
<module name="Magento_Customer"/>
<module name="Magento_Sales"/>
Expand Down

0 comments on commit 017423f

Please sign in to comment.