Added missing GPLv2 headers in some places.
[lhc/web/wiklou.git] / includes / Article.php
index 67e1c87..6a3e41c 100644 (file)
@@ -910,13 +910,14 @@ class Article extends Page {
        public function showPatrolFooter() {
                $request = $this->getContext()->getRequest();
                $outputPage = $this->getContext()->getOutput();
+               $user = $this->getContext()->getUser();
                $rcid = $request->getVal( 'rcid' );
 
                if ( !$rcid || !$this->getTitle()->quickUserCan( 'patrol' ) ) {
                        return;
                }
 
-               $token = $request->getUser()->getEditToken( $rcid );
+               $token = $user->getEditToken( $rcid );
                $outputPage->preventClickjacking();
 
                $outputPage->addHTML(
@@ -1068,7 +1069,7 @@ class Article extends Page {
         *   Revision as of \<date\>; view current revision
         *   \<- Previous version | Next Version -\>
         *
-        * @param $oldid String: revision ID of this article revision
+        * @param $oldid int: revision ID of this article revision
         */
        public function setOldSubtitle( $oldid = 0 ) {
                if ( !wfRunHooks( 'DisplayOldSubtitle', array( &$this, &$oldid ) ) ) {