Skip to content

Commit 0f108ea

Browse files
authored
Merge pull request #11365 from bozana/11363-3_5_0
#11363 run UpdateIPGeoDB on install and upgrade
2 parents 87e59c9 + c01f397 commit 0f108ea

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

classes/install/Installer.php

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
use PKP\site\Version;
3737
use PKP\site\VersionCheck;
3838
use PKP\site\VersionDAO;
39+
use PKP\task\UpdateIPGeoDB;
3940
use PKP\task\UpdateRorRegistryDataset;
4041
use PKP\xml\PKPXMLParser;
4142
use PKP\xml\XMLNode;
@@ -955,7 +956,18 @@ public function updateRorRegistryDataset(): bool
955956

956957
$updateRorRegistryDataset = new UpdateRorRegistryDataset();
957958
$updateRorRegistryDataset->execute();
958-
959+
960+
return true;
961+
}
962+
963+
/**
964+
* Download IPGeoDB
965+
*/
966+
public function downloadIPGeoDB(): bool
967+
{
968+
PKPApplication::upgrade();
969+
$updateIPGeoDB = new UpdateIPGeoDB();
970+
$updateIPGeoDB->execute();
959971
return true;
960972
}
961973

0 commit comments

Comments
 (0)