From d6d25e9ec65f5c65a539eaca472814c78fd22a15 Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Fri, 27 Jul 2018 13:09:33 -0400 Subject: [PATCH] Fix script invocation when scanning a directory Since the directory was not preprended to the filenames, no scripts could ever be called. --- bureau/class/m_hooks.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bureau/class/m_hooks.php b/bureau/class/m_hooks.php index 1093b077..956edc4c 100644 --- a/bureau/class/m_hooks.php +++ b/bureau/class/m_hooks.php @@ -82,6 +82,8 @@ class m_hooks { } } else if (is_dir($scripts)) { foreach (scandir($scripts) as $ccc) { + # scandir returns the file names only + $ccc = $scripts . '/' . $ccc; if (is_file($ccc) && is_executable($ccc)) { $to_launch[] = $ccc; }