Skip to content

Commit

Permalink
pkp#9899 proper class path added for Core class
Browse files Browse the repository at this point in the history
  • Loading branch information
touhidurabir committed Jun 13, 2024
1 parent 188bba2 commit 84649f2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions classes/core/PKPPageRouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

use APP\core\Application;
use APP\facades\Repo;
use PKP\core\Core;
use PKP\facades\Locale;
use PKP\plugins\Hook;
use PKP\security\Role;
Expand Down Expand Up @@ -106,7 +107,7 @@ public function isCacheable($request, $testOnly = false): bool
public function getRequestedPage($request)
{
if (!isset($this->_page)) {
$this->_page = $this->_getRequestedUrlParts(['Core', 'getPage'], $request);
$this->_page = $this->_getRequestedUrlParts([Core::class, 'getPage'], $request);
}
return $this->_page;
}
Expand All @@ -121,7 +122,7 @@ public function getRequestedPage($request)
public function getRequestedOp($request)
{
if (!isset($this->_op)) {
$this->_op = $this->_getRequestedUrlParts(['Core', 'getOp'], $request);
$this->_op = $this->_getRequestedUrlParts([Core::class, 'getOp'], $request);
}
return $this->_op;
}
Expand All @@ -135,7 +136,7 @@ public function getRequestedOp($request)
*/
public function getRequestedArgs($request)
{
return $this->_getRequestedUrlParts(['Core', 'getArgs'], $request);
return $this->_getRequestedUrlParts([Core::class, 'getArgs'], $request);
}

/**
Expand Down

0 comments on commit 84649f2

Please sign in to comment.