Skip to content

Commit a54a60d

Browse files
author
vrana
committed
Fix check request event
Summary: Broken since birth. Test Plan: Used it. Reviewers: nh, epriestley Reviewed By: nh CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4602
1 parent c95dcab commit a54a60d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/applications/base/controller/PhabricatorController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ final public function willBeginExecution() {
7979
PhabricatorEventType::TYPE_CONTROLLER_CHECKREQUEST,
8080
array(
8181
'request' => $request,
82-
'controller' => get_class($this),
82+
'controller' => $this,
8383
));
8484
$event->setUser($user);
8585
PhutilEventEngine::dispatchEvent($event);
8686
$checker_controller = $event->getValue('controller');
87-
if ($checker_controller != get_class($this)) {
87+
if ($checker_controller != $this) {
8888
return $this->delegateToController($checker_controller);
8989
}
9090

0 commit comments

Comments
 (0)