Changeset 19

Show
Ignore:
Timestamp:
11/05/04 12:24:53 (4 years ago)
Author:
torben
Message:

Fixed relocation stuff by using $midcom->relocate()

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/midcom/admin/content/_cmdtopic.php

    r2 r19  
    141141     
    142142    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. 
    148145    } 
    149146     
  • trunk/lib/midcom/admin/content/main.php

    r12 r19  
    8686            debug_add("No parameters given, redirecting to the root_topic (".$this->_root_topic->id.")", MIDCOM_LOG_INFO); 
    8787            $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 
    9090        } 
    9191