Skip to content

Commit d884046

Browse files
committed
v1.0.2 : Catched request for title on a non-existing page
1 parent 2458dd7 commit d884046

3 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.2 : Catched request for title on a non-existing page
45
* Version 1.0.1 : Code clean-up and i18n messages added
56
* Version 1.0.0 : Added support for setting limit and export as WSArrays
67
* Version 0.8.2 : Added support for filtering only unique visitors

WSStats.hooks.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public static function db_real_escape( string $txt ) : string {
7373
*/
7474
public static function getPageTitleFromID( $id ) {
7575
$title = Title::newFromID( $id );
76-
76+
if( is_null( $title ) ) return '';
7777
return $title->getFullText();
7878
}
7979

extension.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "WSStats",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"author": [
55
"Sen-Sai"
66
],

0 commit comments

Comments
 (0)