Skip to content
This repository has been archived by the owner on Feb 4, 2024. It is now read-only.

Commit

Permalink
Use databases.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Universal-Omega authored Dec 8, 2023
1 parent 2c851bb commit 0e56d66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/WikiTideMagicHooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -583,8 +583,8 @@ public function onTitleReadWhitelist( $title, $user, &$whitelisted ) {

public function onGlobalUserPageWikis( &$list ) {
$cwCacheDir = $this->options->get( 'CreateWikiCacheDirectory' );
if ( file_exists( "{$cwCacheDir}/databases-wikitide.json" ) ) {
$databasesArray = json_decode( file_get_contents( "{$cwCacheDir}/databases-wikitide.json" ), true );
if ( file_exists( "{$cwCacheDir}/databases.json" ) ) {
$databasesArray = json_decode( file_get_contents( "{$cwCacheDir}/databases.json" ), true );
$list = array_keys( $databasesArray['combi'] );
return false;
}
Expand Down

0 comments on commit 0e56d66

Please sign in to comment.