http://www.mediawiki.org/wiki/Special:Code/MediaWiki/90550

Revision: 90550
Author:   nimishg
Date:     2011-06-21 21:29:20 +0000 (Tue, 21 Jun 2011)
Log Message:
-----------
fixed some errant syntax

Modified Paths:
--------------
    trunk/wikistats/MetricsReporting/MetricsReporting.php

Modified: trunk/wikistats/MetricsReporting/MetricsReporting.php
===================================================================
--- trunk/wikistats/MetricsReporting/MetricsReporting.php       2011-06-21 
21:14:26 UTC (rev 90549)
+++ trunk/wikistats/MetricsReporting/MetricsReporting.php       2011-06-21 
21:29:20 UTC (rev 90550)
@@ -64,23 +64,19 @@
 
 );
 
-
+$dir = dirname( __FILE__ );
 $wgAutoloadClasses['ApiAnalytics'] = $dir . '/api/ApiAnalytics.php';
 $wgAutoloadClasses['ApiAnalyticsMetric'] = $dir . 
'/api/ApiAnalyticsMetric.php';
 $wgAutoloadClasses['MetricsReportingQuery'] = $dir . 
'/MetricsReportingQuery.php';
 
-
-$dir = dirname( __FILE__ );
-
-
 $wgeAnalyticsMetricsList = array();
 $metricsdir = $dir."/metrics";
 $dh = opendir($metricsdir);
 while( ($file = readdir($dh)) !== false){
-       if(filetype($dir.$file) == "file" ){
-               $file_path_parts = pathinfo($dir.$file);
+       if(filetype($metricsdir."/".$file) == "file" ){
+               $file_path_parts = pathinfo($metricsdir."/".$file);
                if($file_path_parts['extension'] == 'php'){
-                       
$wgAutoloadClasses["ApiAnalyticsMetric{$file_path_parts['filename']}"] = 
$dir.$file;
+                       
$wgAutoloadClasses["ApiAnalyticsMetric{$file_path_parts['filename']}"] = 
$metricsdir."/".$file;
                        $wgeAnalyticsMetricsList[] = 
$file_path_parts['filename'];
                }
        }
@@ -108,6 +104,4 @@
        
        return $db;
 }
-
-
-class 
\ No newline at end of file
+ 


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

Reply via email to