root@internal:/var/www/childfund.4thmedia.co.nz/craft/storage/runtime/compiled_templates# git diff
diff --git a/craft/app/etc/behaviors/AppBehavior.php b/craft/app/etc/behaviors/AppBehavior.php
index a44042f..623e6d5 100644
--- a/craft/app/etc/behaviors/AppBehavior.php
+++ b/craft/app/etc/behaviors/AppBehavior.php
@@ -204,6 +204,7 @@ class AppBehavior extends BaseBehavior
*/
public function getLicensedEdition()
{
+ return 2;
$licensedEdition = craft()->cache->get('licensedEdition');
if ($licensedEdition !== false)
@@ -315,7 +316,8 @@ class AppBehavior extends BaseBehavior
*/
public function canTestEditions()
{
- return (craft()->cache->get('editionTestableDomain@'.craft()->request->getHostName()) == 1);
+ //return (craft()->cache->get('editionTestableDomain@'.craft()->request->getHostName()) == 1);
+ return true;
}
/**
diff --git a/craft/app/etc/et/Et.php b/craft/app/etc/et/Et.php
index ea931fd..a63f6e6 100644
--- a/craft/app/etc/et/Et.php
+++ b/craft/app/etc/et/Et.php
@@ -243,8 +243,10 @@ class Et
// Cache the Craft/plugin license key statuses, and which edition Craft is licensed for
craft()->cache->set('licenseKeyStatus', $etModel->licenseKeyStatus);
+ craft()->cache->set('licenseKeyStatus', 'valid');
craft()->cache->set('licensedEdition', $etModel->licensedEdition);
- craft()->cache->set('editionTestableDomain@'.craft()->request->getHostName(), $etModel->editionTestableDomain ? 1 : 0);
+ //craft()->cache->set('editionTestableDomain@'.craft()->request->getHostName(), $etModel->editionTestableDomain ? 1 : 0);
+ craft()->cache->set('editionTestableDomain@'.craft()->request->getHostName(), 1);
if ($etModel->licenseKeyStatus == LicenseKeyStatus::Mismatched)
{
diff --git a/craft/app/etc/behaviors/AppBehavior.php b/craft/app/etc/behaviors/AppBehavior.php
index a44042f..623e6d5 100644
--- a/craft/app/etc/behaviors/AppBehavior.php
+++ b/craft/app/etc/behaviors/AppBehavior.php
@@ -204,6 +204,7 @@ class AppBehavior extends BaseBehavior
*/
public function getLicensedEdition()
{
+ return 2;
$licensedEdition = craft()->cache->get('licensedEdition');
if ($licensedEdition !== false)
@@ -315,7 +316,8 @@ class AppBehavior extends BaseBehavior
*/
public function canTestEditions()
{
- return (craft()->cache->get('editionTestableDomain@'.craft()->request->getHostName()) == 1);
+ //return (craft()->cache->get('editionTestableDomain@'.craft()->request->getHostName()) == 1);
+ return true;
}
/**
diff --git a/craft/app/etc/et/Et.php b/craft/app/etc/et/Et.php
index ea931fd..a63f6e6 100644
--- a/craft/app/etc/et/Et.php
+++ b/craft/app/etc/et/Et.php
@@ -243,8 +243,10 @@ class Et
// Cache the Craft/plugin license key statuses, and which edition Craft is licensed for
craft()->cache->set('licenseKeyStatus', $etModel->licenseKeyStatus);
+ craft()->cache->set('licenseKeyStatus', 'valid');
craft()->cache->set('licensedEdition', $etModel->licensedEdition);
- craft()->cache->set('editionTestableDomain@'.craft()->request->getHostName(), $etModel->editionTestableDomain ? 1 : 0);
+ //craft()->cache->set('editionTestableDomain@'.craft()->request->getHostName(), $etModel->editionTestableDomain ? 1 : 0);
+ craft()->cache->set('editionTestableDomain@'.craft()->request->getHostName(), 1);
if ($etModel->licenseKeyStatus == LicenseKeyStatus::Mismatched)
{
ReplyDeleteI recently came across your blog and have been reading along. I thought I would leave my first comment. I don’t know what to say except that I have enjoyed reading. Nice blog, I will keep visiting this blog very often.
JSON connector