Changeset 25013
- Timestamp:
- 02/04/10 14:57:50 (7 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/midgardmvc/midgardmvc_core/services/configuration/yaml.php
r24963 r25013 412 412 } 413 413 414 $enable_webdav = $this->midgardmvc->configuration->get('enable_webdav'); 415 416 $root_page = false; 417 if ( isset($this->midgardmvc->context->page) 418 && $this->midgardmvc->context->page->id == $this->midgardmvc->context->root_page->id) 419 { 420 $root_page = true; 421 } 422 414 423 $normalized_routes = array(); 415 424 foreach ($routes as $identifier => $route) … … 417 426 if ( isset($route['root_only']) 418 427 && $route['root_only'] 419 && isset($this->midgardmvc->context->page) 420 && $this->midgardmvc->context->page->id != $this->midgardmvc->context->root_page->id) 428 && !$root_page) 421 429 { 422 430 // Drop root-only routes from subpages … … 452 460 } 453 461 454 if (!$ this->midgardmvc->configuration->get('enable_webdav'))462 if (!$enable_webdav) 455 463 { 456 464 // Only allow GET and POST
