From 174b87d0c4dad8288ab15c2ae48f10b8138a48e0 Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 23 Feb 2020 18:38:23 +0000 Subject: [PATCH] info show types --- core/extension.php | 2 +- ext/et/main.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/extension.php b/core/extension.php index aa93759d..d2bea604 100644 --- a/core/extension.php +++ b/core/extension.php @@ -497,7 +497,7 @@ abstract class DataHandlerExtension extends Extension { $arr = []; foreach (getSubclassesOf("DataHandlerExtension") as $handler) { - $arr = array_merge($arr, $handler->SUPPORTED_EXT); + $arr = array_merge($arr, (new $handler())->SUPPORTED_EXT); } return $arr; } diff --git a/ext/et/main.php b/ext/et/main.php index 6f6fc9d8..7c28c693 100644 --- a/ext/et/main.php +++ b/ext/et/main.php @@ -90,6 +90,8 @@ class ET extends Extension } $info['sys_extensions'] = join(', ', $els); + $info['handled_extensions'] = join(', ', DataHandlerExtension::get_all_supported_exts()); + //$cfs = array(); //foreach($database->get_all("SELECT name, value FROM config") as $pair) { // $cfs[] = $pair['name']."=".$pair['value'];