From e7bf0bf4fb1fc7f89a908dcc329e5281de8b15ea Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Mon, 16 Feb 2026 21:31:48 +0000
Subject: [PATCH] Add hook_install.php and remove hook_enable.php include in public.php
---
public.php | 2 --
hook_install.php | 3 +++
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/hook_install.php b/hook_install.php
new file mode 100644
index 0000000..97c485b
--- /dev/null
+++ b/hook_install.php
@@ -0,0 +1,3 @@
+<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+require_once(__DIR__ . '/hook_enable.php');
diff --git a/public.php b/public.php
index 440365a..f56883c 100644
--- a/public.php
+++ b/public.php
@@ -2,8 +2,6 @@
require_once(__DIR__ . '/vendor/autoload.php');
try {
- require_once(__DIR__ . '/hook_enable.php');
-
$helper = new \SIPL\UCRM\wFirma\UcrmHelper();
$event = $helper->getCurrentEvent();
--
Gitblit v1.10.0