Skip to content

Commit 28c108e

Browse files
committed
5558 deactivate licensing functionality for free version
1 parent e91b5a0 commit 28c108e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/app/code/community/IntegerNet/Solr/Helper/Module.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ public function isKeyValid($key)
6363
*/
6464
public function isLicensed()
6565
{
66+
if (!Mage::helper('core')->isModuleEnabled('IntegerNet_SolrPro')) {
67+
return true;
68+
}
6669
if (!$this->isKeyValid(Mage::getStoreConfig('integernet_solr/general/license_key'))) {
6770

6871
if ($installTimestamp = Mage::getStoreConfig('integernet_solr/general/install_date')) {

src/app/code/community/IntegerNet/Solr/Model/Configuration.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ protected function _isModuleActive($storeId)
138138
*/
139139
protected function _isModuleLicensed()
140140
{
141+
if (!Mage::helper('core')->isModuleEnabled('IntegerNet_SolrPro')) {
142+
return true;
143+
}
144+
141145
if (!trim(Mage::getStoreConfig('integernet_solr/general/license_key'))) {
142146

143147
if ($installTimestamp = Mage::getStoreConfig('integernet_solr/general/install_date')) {

0 commit comments

Comments
 (0)