Revision: 50740
Author:   siebrand
Date:     2009-05-18 19:19:12 +0000 (Mon, 18 May 2009)

Log Message:
-----------
* fixd escriptionmsg in extension credits
* add right- message
* remove trailing whitespace, update indentation, stylize.php

Modified Paths:
--------------
    trunk/extensions/Piwik/Piwik.i18n.php
    trunk/extensions/Piwik/Piwik.php
    trunk/extensions/Piwik/README

Modified: trunk/extensions/Piwik/Piwik.i18n.php
===================================================================
--- trunk/extensions/Piwik/Piwik.i18n.php       2009-05-18 19:09:06 UTC (rev 
50739)
+++ trunk/extensions/Piwik/Piwik.i18n.php       2009-05-18 19:19:12 UTC (rev 
50740)
@@ -16,6 +16,7 @@
        'piwik-lastvisits' => 'Last visits',
        'piwik-countries'  => 'Countries',
        'piwik-browsers'   => 'Browsers',
+       'right-viewpiwik'  => 'View [[Special:Piwiki|Piwik statistics]]',
 );
 
 /** Message documentation (Message documentation)

Modified: trunk/extensions/Piwik/Piwik.php
===================================================================
--- trunk/extensions/Piwik/Piwik.php    2009-05-18 19:09:06 UTC (rev 50739)
+++ trunk/extensions/Piwik/Piwik.php    2009-05-18 19:19:12 UTC (rev 50740)
@@ -18,7 +18,7 @@
        'version'        => '0.8-piwik0.2.26 (1.0-RC3)',
        'author'         => 'Isb1009',
        'description'    => 'Inserts Piwik script into MediaWiki pages for 
tracking and adds [[Special:Piwik|some stats]]. Based on Google Analytics 
Integration by Tim Laqua.',
-       'descriptionurl' => 'piwik-desc',
+       'descriptionmsg' => 'piwik-desc',
        'url'            => 
'http://www.mediawiki.org/wiki/Extension:Piwik_Integration',
 );
 
@@ -42,14 +42,14 @@
        if ( !$wgUser->isAllowed( 'bot' ) || !$wgPiwikIgnoreBots ) {
                if ( !$wgUser->isAllowed( 'protect' ) || !$wgPiwikIgnoreSysops 
) {
                        if ( !empty( $wgPiwikIDSite ) AND !empty( $wgPiwikURL ) 
) {
-if ( $wgPiwikUsePageTitle == true ) {
-$wgPiwikPageTitle = $wgTitle->getPrefixedText();
+                               if ( $wgPiwikUsePageTitle == true ) {
+                                       $wgPiwikPageTitle = 
$wgTitle->getPrefixedText();
 
-$wgPiwikFinalActionName = $wgPiwikActionName;
-$wgPiwikFinalActionName .= $wgPiwikPageTitle;
-} else {
-$wgPiwikFinalActionName = $wgPiwikActionName;
-}
+                                       $wgPiwikFinalActionName = 
$wgPiwikActionName;
+                                       $wgPiwikFinalActionName .= 
$wgPiwikPageTitle;
+                               } else {
+                                       $wgPiwikFinalActionName = 
$wgPiwikActionName;
+                               }
                                $funcOutput = <<<PIWIK
 <!-- Piwik -->
 <a href="http://piwik.org"; title="Web analytics" 
onclick="window.open(this.href);return(false);">

Modified: trunk/extensions/Piwik/README
===================================================================
--- trunk/extensions/Piwik/README       2009-05-18 19:09:06 UTC (rev 50739)
+++ trunk/extensions/Piwik/README       2009-05-18 19:19:12 UTC (rev 50740)
@@ -65,23 +65,23 @@
 
             $wgPiwikCustomJS = "piwik_hosts_alias = ["hostname1.com", 
"hostname2.com"]; // the current tracked website is added to this array anyway
             piwik_install_tracker = 0;"
-                       
+
 * If you want to change piwik_action_name, you can set $wgPiwikActionName
   inside your LocalSettings.php file.
-  
+
 ** In case you want to include the piwik_action_name as, for example,
    "wiki/Title of the page", you can set $wgPiwikUsePageTitle to
    true and set $wgPiwikActionName to "wiki/". The extension will print
-  
+
                        piwik_action_name = 'wiki/Title of the page';
-                       
+
 * Since 0.8 (1.0-RC3), you can choose which users can see the special page
   setting the following in LocalSettings.php
-  
+
                        $wgGroupPermissions['usergroup']['viewpiwik'] = true;
-  
+
   Where 'usergroup' is the name of the group. By default, only sysops can
   see the special page. If you want to allow bureaucrats to see the page,
   add that line with 'bureaucrat' where 'usergroup' is. The same is for
   normal users ('user') and anonymous users ('*').
-  
+



_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to