$ext_name = substr($subj, 1, strpos($subj, ":") - 1);
if ($type == "EXTENSION") {
// Load SQL commands for registering
- SET_SQLS(EXTENSION_REGISTER($ext_name, $id, true));
+ REGISTER_EXTENSION($ext_name, $id, true);
// Add notes to text
$text .= EXT_GET_NOTES();