From 0e56d66f216dd0da922056397b44da8e4a6aa953 Mon Sep 17 00:00:00 2001 From: CosmicAlpha Date: Fri, 8 Dec 2023 13:37:14 -0700 Subject: [PATCH] Use databases.json --- includes/WikiTideMagicHooks.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/WikiTideMagicHooks.php b/includes/WikiTideMagicHooks.php index 21b96e0..f89b3f6 100644 --- a/includes/WikiTideMagicHooks.php +++ b/includes/WikiTideMagicHooks.php @@ -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; }