Anomie has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/174125

Change subject: Fix SecurePollContent handling
......................................................................

Fix SecurePollContent handling

It was accidentally creating an instance of the parent class,
JsonContent, instead.

Change-Id: I5a0f7eaad1143b39c9045337d88cdfeb1bcb8f82
(cherry picked from commit 176992c8d129aa8ddc1d715b4099e7ea909bf864)
---
M includes/main/SecurePollContent.php
M includes/main/SecurePollContentHandler.php
2 files changed, 7 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SecurePoll 
refs/changes/25/174125/1

diff --git a/includes/main/SecurePollContent.php 
b/includes/main/SecurePollContent.php
index c0c7445..b02ead3 100644
--- a/includes/main/SecurePollContent.php
+++ b/includes/main/SecurePollContent.php
@@ -10,4 +10,7 @@
  */
 
 class SecurePollContent extends JsonContent {
+       public function __construct( $text, $modelId = 'SecurePoll' ) {
+               parent::__construct( $text, $modelId );
+       }
 }
diff --git a/includes/main/SecurePollContentHandler.php 
b/includes/main/SecurePollContentHandler.php
index 12a6b15..236ecfb 100644
--- a/includes/main/SecurePollContentHandler.php
+++ b/includes/main/SecurePollContentHandler.php
@@ -176,4 +176,8 @@
                        'unprotect' => false,
                );
        }
+
+       protected function getContentClass() {
+               return 'SecurePollContent';
+       }
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5a0f7eaad1143b39c9045337d88cdfeb1bcb8f82
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SecurePoll
Gerrit-Branch: wmf/1.25wmf8
Gerrit-Owner: Anomie <[email protected]>

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

Reply via email to