Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/units/themes/theme_item.php
Show All 12 Lines | |||||
*/ | */ | ||||
defined('FULL_PATH') or die('restricted access!'); | defined('FULL_PATH') or die('restricted access!'); | ||||
class ThemeItem extends kDBItem | class ThemeItem extends kDBItem | ||||
{ | { | ||||
public function Load($id, $id_field_name = null, $cachable = true) | public function Load($id, $id_field_name = null, $cachable = true) | ||||
{ | { | ||||
if ( $cachable && $this->IsTempTable() ) { | |||||
$cachable = false; | |||||
} | |||||
$default = false; | $default = false; | ||||
if ($id == 'default') { | if ($id == 'default') { | ||||
// domain based primary theme | // domain based primary theme | ||||
$id = $this->Application->siteDomainField('PrimaryThemeId'); | $id = $this->Application->siteDomainField('PrimaryThemeId'); | ||||
if (!$id) { | if (!$id) { | ||||
$id = 1; | $id = 1; | ||||
$id_field_name = 'PrimaryTheme'; | $id_field_name = 'PrimaryTheme'; | ||||
▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines |