Skip to main content

Posts

Showing posts from December, 2016

Hack CraftCMS License to enable test payment

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 ...