r90550 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90549‎ | r90550 | r90551 >
Date:21:29, 21 June 2011
Author:nimishg
Status:ok
Tags:
Comment:
fixed some errant syntax
Modified paths:
  • /trunk/wikistats/MetricsReporting/MetricsReporting.php (modified) (history)

Diff [purge]

Index: trunk/wikistats/MetricsReporting/MetricsReporting.php
@@ -64,23 +64,19 @@
6565
6666 );
6767
68 -
 68+$dir = dirname( __FILE__ );
6969 $wgAutoloadClasses['ApiAnalytics'] = $dir . '/api/ApiAnalytics.php';
7070 $wgAutoloadClasses['ApiAnalyticsMetric'] = $dir . '/api/ApiAnalyticsMetric.php';
7171 $wgAutoloadClasses['MetricsReportingQuery'] = $dir . '/MetricsReportingQuery.php';
7272
73 -
74 -$dir = dirname( __FILE__ );
75 -
76 -
7773 $wgeAnalyticsMetricsList = array();
7874 $metricsdir = $dir."/metrics";
7975 $dh = opendir($metricsdir);
8076 while( ($file = readdir($dh)) !== false){
81 - if(filetype($dir.$file) == "file" ){
82 - $file_path_parts = pathinfo($dir.$file);
 77+ if(filetype($metricsdir."/".$file) == "file" ){
 78+ $file_path_parts = pathinfo($metricsdir."/".$file);
8379 if($file_path_parts['extension'] == 'php'){
84 - $wgAutoloadClasses["ApiAnalyticsMetric{$file_path_parts['filename']}"] = $dir.$file;
 80+ $wgAutoloadClasses["ApiAnalyticsMetric{$file_path_parts['filename']}"] = $metricsdir."/".$file;
8581 $wgeAnalyticsMetricsList[] = $file_path_parts['filename'];
8682 }
8783 }
@@ -108,6 +104,4 @@
109105
110106 return $db;
111107 }
112 -
113 -
114 -class
\ No newline at end of file
 108+

Status & tagging log