Skip to content

Commit

Permalink
Fix RecipeCheck incompatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
5ko committed Apr 15, 2024
1 parent e534f1f commit f758919
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions hub.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,13 +203,13 @@ function delete($pagename) {


function extInit() {
global $xHub, $action, $WikiLibDirs;
global $xHub, $action, $WikiLibDirs, $PostConfig;
static $done = 0; if($done++) return [];
$WikiLibDirs[] = new HubPageStore();
$xHub["ConfigStore"] = new PageStore("{$xHub['DataDir']}/{\$FullName}");
extScanDir();
if($action == 'recipecheck') {
FmtExtList('', '', ['onlyRecipeInfo'=>1]);
$PostConfig['extRecipeCheck'] = 0.4;
}
return extGetIncluded('');
}
Expand Down Expand Up @@ -656,6 +656,10 @@ function extGetVersion($xname) {
return $version;
}

# Populate extension versions for ?action=recipecheck
function extRecipeCheck(){
FmtExtList('', '', ['onlyRecipeInfo'=>1]);
}
function FmtExtList($pagename, $d, $args) {
global $HandleAuth, $xHub, $RecipeInfo, $HTMLStylesFmt;
$page = RetrieveAuthPage($pagename, $HandleAuth['hub'], false, READPAGE_CURRENT);
Expand Down

0 comments on commit f758919

Please sign in to comment.