X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FAction.php;h=72be46f0bb3a2677e7119c182522b5deab0aff32;hb=9984a60ab6f79591bccbb672d55776001b80f684;hp=4b6e44689c71e13b84c6cd62effcccb74249d0a0;hpb=320a2971e0325ae7f158cc1aff192f864d04b267;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Action.php b/includes/Action.php index 4b6e44689c..72be46f0bb 100644 --- a/includes/Action.php +++ b/includes/Action.php @@ -167,7 +167,7 @@ abstract class Action { final public function getContext() { if ( $this->context instanceof IContextSource ) { return $this->context; - } else if ( $this->page instanceof Article ) { + } elseif ( $this->page instanceof Article ) { // NOTE: $this->page can be a WikiPage, which does not have a context. wfDebug( __METHOD__ . ': no context known, falling back to Article\'s context.' ); return $this->page->getContext();