Skip to content

Commit

Permalink
v1.0.6 Fixed path to sql tables
Browse files Browse the repository at this point in the history
  • Loading branch information
Designburo committed Dec 23, 2021
1 parent 2f74dff commit 134411e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# WSStats
This MediaWiki extension counts pageviews by user

* Version 1.0.6 : Fixed path to sql tables
* Version 1.0.5 : Rewrote database queries to use MW database abstraction layer.
* Version 1.0.4 : Security fix! Unhandled user input. Update to 1.0.4 as soon as possible.
* Version 1.0.3 : Top X list changed as it no longer shows deleted pages
Expand Down
4 changes: 2 additions & 2 deletions src/WSStatsHooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public static function addTables( $updater ) {
if ( $dbt === 'sqlite' ) {
$dbt = 'sql';
}
$tables = __DIR__ . "/sql/WSStats.$dbt";
$tables = __DIR__ . "/../sql/WSStats.$dbt";

if ( file_exists( $tables ) ) {
$updater->addExtensionUpdate( array(
Expand All @@ -155,7 +155,7 @@ public static function addTables( $updater ) {
true
) );
} else {
throw new MWException( "WSStats does not support $dbt." );
throw new \MWException( "WSStats does not support $dbt." );
}

return true;
Expand Down

0 comments on commit 134411e

Please sign in to comment.