Changeset 19
- Timestamp:
- 11/05/04 12:24:53 (4 years ago)
- Files:
-
- trunk/lib/midcom/admin/content/_cmdtopic.php (modified) (1 diff)
- trunk/lib/midcom/admin/content/main.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/midcom/admin/content/_cmdtopic.php
r2 r19 141 141 142 142 function _admin_redirect() { 143 $protocol = array_key_exists("SSL_PROTOCOL", $_SERVER) ? 144 "https" : "http"; 145 $GLOBALS["midcom"]->header("Location: $protocol://" . $_SERVER['HTTP_HOST'] 146 . $this->_contentadm->viewdata["adminprefix"] . $this->_redirect ); 147 exit(); 143 $GLOBALS["midcom"]->relocate($this->_contentadm->viewdata["adminprefix"] . $this->_redirect); 144 // This will exit. 148 145 } 149 146 trunk/lib/midcom/admin/content/main.php
r12 r19 86 86 debug_add("No parameters given, redirecting to the root_topic (".$this->_root_topic->id.")", MIDCOM_LOG_INFO); 87 87 $protocol = array_key_exists("SSL_PROTOCOL", $_SERVER) ? "https" : "http"; 88 $ midcom->header("Location: $protocol://" . $_SERVER["HTTP_HOST"] .$midcom->get_context_data(MIDCOM_CONTEXT_ANCHORPREFIX) . $this->_root_topic->id . "/data/");89 exit();88 $GLOBALS["midcom"]->relocate($midcom->get_context_data(MIDCOM_CONTEXT_ANCHORPREFIX) . $this->_root_topic->id . "/data/"); 89 // This will exit 90 90 } 91 91
