Legoktm has uploaded a new change for review.
https://gerrit.wikimedia.org/r/250842
Change subject: Set explicit output format for message
......................................................................
Set explicit output format for message
I don't think you actually want to parse() this?
Change-Id: I0e35bd8a8dfaad89e5398dc4b5301db25697f787
---
M includes/ExternalSurvey.php
1 file changed, 2 insertions(+), 3 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/QuickSurveys
refs/changes/42/250842/1
diff --git a/includes/ExternalSurvey.php b/includes/ExternalSurvey.php
index be66bb7..429e879 100644
--- a/includes/ExternalSurvey.php
+++ b/includes/ExternalSurvey.php
@@ -2,8 +2,7 @@
namespace QuickSurveys;
-class ExternalSurvey extends Survey
-{
+class ExternalSurvey extends Survey {
/**
* @var bool whether the survey runs on https or not.
*/
@@ -38,7 +37,7 @@
$this->name = $name;
$this->link = $link;
$this->privacyPolicy = $privacyPolicy;
- $this->isInsecure = !preg_match( '/https/i', wfMessage(
$this->link ) ) ? true : false;
+ $this->isInsecure = !preg_match( '/https/i', wfMessage(
$this->link )->plain() ) ? true : false;
}
public function getMessages() {
--
To view, visit https://gerrit.wikimedia.org/r/250842
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I0e35bd8a8dfaad89e5398dc4b5301db25697f787
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/QuickSurveys
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits