log every ext version change

This commit is contained in:
Shish
2019-11-03 19:04:57 +00:00
parent 4f0ee38508
commit 494ba15a70
10 changed files with 77 additions and 73 deletions

View File

@ -61,19 +61,11 @@ class AdminPage extends Extension
public function onCommand(CommandEvent $event)
{
if ($event->cmd == "help") {
print "\tdb-upgrade\n";
print "\t\tRun DB schema updates, if automatic updates are disabled\n\n";
print "\tget-page <query string>\n";
print "\t\teg 'get-page post/list'\n\n";
print "\tregen-thumb <id / hash>\n";
print "\t\tregenerate a thumbnail\n\n";
}
if ($event->cmd == "db-upgrade") {
print("Running DB Upgrade\n");
global $database;
$database->set_timeout(300000); // These updates can take a little bit
send_event(new DatabaseUpgradeEvent());
}
if ($event->cmd == "get-page") {
global $page;
send_event(new PageRequestEvent($event->args[0]));