Changeset 22759
- Timestamp:
- 07/01/09 14:26:59 (9 months ago)
- Files:
-
- trunk/midcom/midcom_core/configuration/defaults.yml (modified) (1 diff)
- trunk/midcom/midcom_core/midcom.php (modified) (1 diff)
- trunk/midcom/midcom_core/services/templating/midgard.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/midcom/midcom_core/configuration/defaults.yml
r22557 r22759 5 5 services_templating_components: 6 6 - midcom_core 7 services_templating_database_enabled: true 7 8 services_sessioning: midcom_core_services_sessioning_midgard 8 9 services_uimessages: midcom_core_services_uimessages_simple trunk/midcom/midcom_core/midcom.php
r22557 r22759 266 266 } 267 267 268 // And finally append style and page to template stack 269 $_MIDCOM->templating->append_style($this->context->style_id); 270 $_MIDCOM->templating->append_page($this->context->page->id); 268 if ($this->configuration->services_templating_database_enabled) 269 { 270 // And finally append style and page to template stack 271 $_MIDCOM->templating->append_style($this->context->style_id); 272 $_MIDCOM->templating->append_page($this->context->page->id); 273 } 271 274 if ($this->timer) 272 275 { trunk/midcom/midcom_core/services/templating/midgard.php
r22574 r22759 66 66 public function append_style($style_id) 67 67 { 68 if (!$_MIDCOM->configuration->services_templating_database_enabled) 69 { 70 return; 71 } 68 72 $stack = $_MIDCOM->context->get_current_context(); 69 73 if (!isset($this->stacks[$stack])) … … 78 82 public function append_page($page_id) 79 83 { 84 if (!$_MIDCOM->configuration->services_templating_database_enabled) 85 { 86 return; 87 } 80 88 if ($page_id != $_MIDCOM->context->page->id) 81 89 {
