Reedy has uploaded a new change for review.

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


Change subject: Use $wgExtensionAssetsPath
......................................................................

Use $wgExtensionAssetsPath

Change-Id: I7a3fabddec484f1eaeeaa8446364903f3f095f23
---
M includes/main/Base.php
1 file changed, 5 insertions(+), 5 deletions(-)


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

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: newchange
Gerrit-Change-Id: I7a3fabddec484f1eaeeaa8446364903f3f095f23
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SecurePoll
Gerrit-Branch: master
Gerrit-Owner: Reedy <[email protected]>

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

Reply via email to