Reedy has submitted this change and it was merged.
Change subject: Use $wgExtensionAssetsPath
......................................................................
Use $wgExtensionAssetsPath
Change-Id: I7a3fabddec484f1eaeeaa8446364903f3f095f23
---
M includes/main/Base.php
1 file changed, 5 insertions(+), 5 deletions(-)
Approvals:
Reedy: Verified; Looks good to me, approved
jenkins-bot: Checked
diff --git a/includes/main/Base.php b/includes/main/Base.php
index 56c99a6..0d26cec 100644
--- a/includes/main/Base.php
+++ b/includes/main/Base.php
@@ -1,7 +1,7 @@
<?php
/**
- * The page that's initially called by MediaWiki when navigating to
+ * The page that's initially called by MediaWiki when navigating to
* Special:SecurePoll. The actual pages are not actually subclasses of
* this or of SpecialPage, they're subclassed from SecurePoll_Page.
*/
@@ -34,15 +34,15 @@
* @param $paramString Mixed: parameter passed to the page or null
*/
public function execute( $paramString ) {
- global $wgOut, $wgRequest, $wgScriptPath;
+ global $wgOut, $wgRequest, $wgExtensionAssetsPath;
$this->setHeaders();
$wgOut->addLink( array(
'rel' => 'stylesheet',
- 'href' =>
"$wgScriptPath/extensions/SecurePoll/resources/SecurePoll.css",
+ 'href' =>
"$wgExtensionAssetsPath/SecurePoll/resources/SecurePoll.css",
'type' => 'text/css'
) );
- $wgOut->addScriptFile(
"$wgScriptPath/extensions/SecurePoll/resources/SecurePoll.js" );
+ $wgOut->addScriptFile(
"$wgExtensionAssetsPath/SecurePoll/resources/SecurePoll.js" );
$this->request = $wgRequest;
@@ -89,7 +89,7 @@
/**
* Set a navigation subtitle.
- * Each argument is a two-element array giving a Title object to be
used as
+ * Each argument is a two-element array giving a Title object to be
used as
* a link target, and the link text.
*/
function setSubtitle( /*...*/ ) {
--
To view, visit https://gerrit.wikimedia.org/r/67145
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I7a3fabddec484f1eaeeaa8446364903f3f095f23
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SecurePoll
Gerrit-Branch: master
Gerrit-Owner: Reedy <[email protected]>
Gerrit-Reviewer: Reedy <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits