View | Details | Raw Unified | Return to bug 4934 | Differences between
and this patch

Collapse All | Expand All

(-)classes/core/Request.inc.php (-5 / +9 lines)
 Lines 43-52    Link Here 
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
 Lines 68-74    Link Here 
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
	/**

Return to bug 4934