Skip to content

Commit

Permalink
Changed naming in stores configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ihorvansach committed Jul 11, 2020
1 parent 4bdb0d9 commit b8abea2
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Block/Adminhtml/System/Config/Form/CloudflareCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function render(\Magento\Framework\Data\Form\Element\AbstractElement $ele
"jquery",
"domReady!"
], function($){
$("#geoip_cloudflare_cloudflare_ip_enable").change(function() {
$("#mfgeoip_cloudflare_cloudflare_ip_enable").change(function() {
var val = parseInt($(this).val());
if (val) {
$("#enable_cloudflare_ip").show();
Expand Down
6 changes: 3 additions & 3 deletions Model/IpToCountryRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ class IpToCountryRepository
/**
* Default path in system.xml
*/
const XML_PATH_CLOUDFLARE_ENABLED = 'mf_geoip/cloudflare/cloudflare_ip_enable';
const XML_PATH_CLOUDFLARE_ENABLED = 'mfgeoip/cloudflare/cloudflare_ip_enable';

/**
* Allow IPs path in system.xml
*/
const XML_PATH_ALLOW_IPS = 'mf_geoip/developer/allow_ips';
const XML_PATH_ALLOW_IPS = 'mfgeoip/developer/allow_ips';

/**
* Simulate country path in system.xml
*/
const XML_PATH_SIMULATE_COUNTRY = 'mf_geoip/developer/simulate_country';
const XML_PATH_SIMULATE_COUNTRY = 'mfgeoip/developer/simulate_country';

/**
* @var \Magento\Framework\HTTP\PhpEnvironment\RemoteAddress
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"geoip2/geoip2": "^2.9.0"
},
"type": "magento2-module",
"version": "2.1.6",
"version": "2.1.7",
"autoload": {
"psr-4": {
"Magefan\\GeoIp\\": ""
Expand Down
2 changes: 1 addition & 1 deletion etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<tab id="magefan" sortOrder="110" translate="label">
<label>Magefan Extensions</label>
</tab>
<section id="mf_geoip" translate="label" sortOrder="130" showInDefault="1" showInWebsite="0" showInStore="0">
<section id="mfgeoip" translate="label" sortOrder="130" showInDefault="1" showInWebsite="0" showInStore="0">
<class>separator-top</class>
<label>GeoIP Database</label>
<tab>magefan</tab>
Expand Down
4 changes: 2 additions & 2 deletions etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
<default>
<mf_geoip>
<mfgeoip>
<cloudflare>
<cloudflare_ip_enable>1</cloudflare_ip_enable>
</cloudflare>
</mf_geoip>
</mfgeoip>
</default>
</config>
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Magefan_GeoIp" setup_version="2.1.6"/>
<module name="Magefan_GeoIp" setup_version="2.1.7"/>
</config>

0 comments on commit b8abea2

Please sign in to comment.