Skip to content

Commit 134411e

Browse files
committed
v1.0.6 Fixed path to sql tables
1 parent 2f74dff commit 134411e

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# WSStats
22
This MediaWiki extension counts pageviews by user
33

4+
* Version 1.0.6 : Fixed path to sql tables
45
* Version 1.0.5 : Rewrote database queries to use MW database abstraction layer.
56
* Version 1.0.4 : Security fix! Unhandled user input. Update to 1.0.4 as soon as possible.
67
* Version 1.0.3 : Top X list changed as it no longer shows deleted pages

src/WSStatsHooks.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public static function addTables( $updater ) {
145145
if ( $dbt === 'sqlite' ) {
146146
$dbt = 'sql';
147147
}
148-
$tables = __DIR__ . "/sql/WSStats.$dbt";
148+
$tables = __DIR__ . "/../sql/WSStats.$dbt";
149149

150150
if ( file_exists( $tables ) ) {
151151
$updater->addExtensionUpdate( array(
@@ -155,7 +155,7 @@ public static function addTables( $updater ) {
155155
true
156156
) );
157157
} else {
158-
throw new MWException( "WSStats does not support $dbt." );
158+
throw new \MWException( "WSStats does not support $dbt." );
159159
}
160160

161161
return true;

0 commit comments

Comments
 (0)