// Paste PHP Code
Index: deki/core/objects/deki_license.php
===================================================================
--- deki/core/objects/deki_license.php (revision 21495)
+++ deki/core/objects/deki_license.php (working copy)
@@ -28,6 +28,8 @@
{
protected static $instance = null;
+ const TYPE_INACTIVE = 'inactive';
+
const CAPABILITY_SEARCH = 'search-engine';
const SEARCH_ADAPTIVE = 'adaptive';
Index: deki/core/objects/deki_site.php
===================================================================
--- deki/core/objects/deki_site.php (revision 21495)
+++ deki/core/objects/deki_site.php (working copy)
@@ -246,15 +246,24 @@
{
$License = DekiLicense::getCurrent();
- // is it a core? easy-peasy
- if ($License->getLicenseType() == self::PRODUCT_CORE)
+ $type = $License->getLicenseType();
+ if ($type == DekiLicense::TYPE_INACTIVE)
{
+ // default to core for inactive licenses
return self::PRODUCT_CORE;
}
else
{
- // if we're returning a commercial license, check the license first then fall back to platform
- return $License->getCommercialNameKey(self::PRODUCT_PLATFORM);
+ // is it a core? easy-peasy
+ if ($License->getLicenseType() == self::PRODUCT_CORE)
+ {
+ return self::PRODUCT_CORE;
+ }
+ else
+ {
+ // if we're returning a commercial license, check the license first then fall back to platform
+ return $License->getCommercialNameKey(self::PRODUCT_PLATFORM);
+ }
}
}
| Images 0 | ||
|---|---|---|
| No images to display in the gallery. |
Copyright © 2011 MindTouch, Inc. Powered by