Skip to content
This repository was archived by the owner on Nov 18, 2025. It is now read-only.

Commit 1f50ea9

Browse files
committed
👌 improve hooks feature
Signed-off-by: otengkwame <[email protected]>
1 parent 55f2f8a commit 1f50ea9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

framework/core/Hooks.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,10 @@ protected function _run_hook($data)
188188

189189
$filepath = APPPATH . $data['filepath'] . '/' . $data['filename'];
190190

191+
if (!file_exists($filepath)) {
192+
$filepath = $data['filepath'] . '/' . $data['filename'];
193+
}
194+
191195
if (!file_exists($filepath)) {
192196
return false;
193197
}

0 commit comments

Comments
 (0)