Kipcool has submitted this change and it was merged.

Change subject: fixed bug undefined method WikidataPageHistory::history
......................................................................


fixed bug undefined method WikidataPageHistory::history

Change-Id: I4d8e5f3ddc9a84e7329ab33f0ec45c3c0bac04ff
---
M Wikidata.hooks.php
1 file changed, 3 insertions(+), 4 deletions(-)

Approvals:
  Kipcool: Verified; Looks good to me, approved



diff --git a/Wikidata.hooks.php b/Wikidata.hooks.php
index 998cca4..5eb597a 100644
--- a/Wikidata.hooks.php
+++ b/Wikidata.hooks.php
@@ -42,9 +42,8 @@
                return array_key_exists( $title->getNamespace(), 
$wdHandlerClasses );
        }
 
-       /**
-        * FIXME: This does not seem to do anything, need to check whether the
-        *        preferences are still being detected.
+       /**  @brief OmegaWiki-specific preferences
+        *
         */
        public static function onGetPreferences( $user, &$preferences ) {
 /*
@@ -111,7 +110,7 @@
                $action = $request->getVal( 'action' );
                if ( $action === 'history' && self::isWikidataNs( $title ) ) {
                        $history = new WikidataPageHistory( $article );
-                       $history->history();
+                       $history->onView();
                        return false;
                }
                return true;

-- 
To view, visit https://gerrit.wikimedia.org/r/250049
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I4d8e5f3ddc9a84e7329ab33f0ec45c3c0bac04ff
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikiLexicalData
Gerrit-Branch: master
Gerrit-Owner: Kipcool <[email protected]>
Gerrit-Reviewer: Kipcool <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to