Issue 1576 redirect a fixed url, when mid of document_srl is different with mid on url

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10279 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ngleader 2012-03-02 00:38:24 +00:00
parent 72ef30abc0
commit bca448300b

View file

@ -89,6 +89,8 @@
if($this->mid != $module_info->mid) {
$this->mid = $module_info->mid;
Context::set('mid', $module_info->mid, true);
header('location:' . getNotEncodedSiteUrl($site_info->domain, 'mid', $this->mid, 'document_srl', $this->document_srl));
return false;
}
}
// if requested module is different from one of the document, remove the module information retrieved based on the document number