|
|
| 43 |
$_this =& PKPRequest::_checkThis(); |
43 |
$_this =& PKPRequest::_checkThis(); |
| 44 |
|
44 |
|
| 45 |
if (!isset($journal)) { |
45 |
if (!isset($journal)) { |
| 46 |
$journalArray = $_this->_delegateToRouter('getRequestedContextPath', 1); |
46 |
$journal = $_this->_delegateToRouter('getRequestedContextPath', 1); |
| 47 |
$journal = $journalArray[0]; |
|
|
| 48 |
|
| 49 |
// call legacy hook |
| 50 |
HookRegistry::call('Request::getRequestedJournalPath', array(&$journal)); |
47 |
HookRegistry::call('Request::getRequestedJournalPath', array(&$journal)); |
| 51 |
} |
48 |
} |
| 52 |
|
49 |
|
|
|
| 68 |
*/ |
65 |
*/ |
| 69 |
function getRequestedContextPath($contextLevel = null) { |
66 |
function getRequestedContextPath($contextLevel = null) { |
| 70 |
$_this =& PKPRequest::_checkThis(); |
67 |
$_this =& PKPRequest::_checkThis(); |
| 71 |
return $_this->_delegateToRouter('getRequestedContextPath', $contextLevel); |
68 |
|
|
|
69 |
// Emulate the old behavior of getRequestedContextPath for |
| 70 |
// backwards compatibility. |
| 71 |
if (is_null($contextLevel)) { |
| 72 |
return $_this->_delegateToRouter('getRequestedContextPaths'); |
| 73 |
} else { |
| 74 |
return array($_this->_delegateToRouter('getRequestedContextPath', $contextLevel)); |
| 75 |
} |
| 72 |
} |
76 |
} |
| 73 |
|
77 |
|
| 74 |
/** |
78 |
/** |