forked from Cavemanon/cavepaintings
split DatabaseUpgrade into a separate event from InitExt
This commit is contained in:
@ -16,14 +16,6 @@ class NumericScoreSetEvent extends Event
|
||||
|
||||
class NumericScore extends Extension
|
||||
{
|
||||
public function onInitExt(InitExtEvent $event)
|
||||
{
|
||||
global $config;
|
||||
if ($config->get_int("ext_numeric_score_version", 0) < 1) {
|
||||
$this->install();
|
||||
}
|
||||
}
|
||||
|
||||
public function onDisplayingImage(DisplayingImageEvent $event)
|
||||
{
|
||||
global $user;
|
||||
@ -303,7 +295,7 @@ class NumericScore extends Extension
|
||||
}
|
||||
}
|
||||
|
||||
private function install()
|
||||
public function onDatabaseUpgrade(DatabaseUpgradeEvent $event)
|
||||
{
|
||||
global $database;
|
||||
global $config;
|
||||
|
Reference in New Issue
Block a user