Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1207798
in-portal
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Nov 9, 5:33 AM
Size
1 KB
Mime Type
text/x-diff
Expires
Tue, Nov 11, 5:33 AM (6 h, 49 m)
Engine
blob
Format
Raw Data
Handle
788990
Attached To
rINP In-Portal
in-portal
View Options
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
Log In to Comment