Page MenuHomeIn-Portal Phabricator

in-portal
No OneTemporary

File Metadata

Created
Sun, Nov 9, 5:33 AM

in-portal

Index: branches/RC/core/units/themes/theme_item.php
===================================================================
--- branches/RC/core/units/themes/theme_item.php (nonexistent)
+++ branches/RC/core/units/themes/theme_item.php (revision 10593)
@@ -0,0 +1,29 @@
+<?php
+
+ class ThemeItem extends kDBItem
+ {
+ function Load($id, $id_field_name=null)
+ {
+ $default = false;
+ if ($id == 'default') {
+ $id = 1;
+ $id_field_name = 'PrimaryTheme';
+ $default = true;
+ }
+
+ $res = parent::Load($id, $id_field_name);
+
+ if ($default) {
+ if (!$res) {
+ if ($this->Application->IsAdmin()) {
+ $res = parent::Load(1);
+ }
+ }
+ $this->Application->SetVar('theme.current_id', $this->GetID() );
+ $this->Application->SetVar('m_theme', $this->GetID() );
+ }
+ return $res;
+ }
+ }
+
+?>
\ No newline at end of file
Property changes on: branches/RC/core/units/themes/theme_item.php
___________________________________________________________________
Added: cvs2svn:cvs-rev
## -0,0 +1 ##
+1.1.2.1
\ No newline at end of property

Event Timeline