Bug 1895901: Make sure we only call included files once
Otherwise we can end up with
PHP Fatal error: Cannot redeclare serve_file() (previously declared
in htdocs/lib/file.php:38) in htdocs/lib/file.php on line 171
Change-Id: I020393a395543738c9054783698e2665160308f8
Signed-off-by: Robert Lyon <email address hidden>
(cherry picked from commit 5b0a7106f793b2adef665773945013d5eeda04f8)
Reviewed: https:/ /reviews. mahara. org/11284 /git.mahara. org/mahara/ mahara/ commit/ 0133cd96bd73047 d0b8ccc04920530 af8070a3c6
Committed: https:/
Submitter: Lisa Seeto (<email address hidden>)
Branch: 20.04_STABLE
commit 0133cd96bd73047 d0b8ccc04920530 af8070a3c6
Author: Robert Lyon <email address hidden>
Date: Thu Sep 17 10:57:50 2020 +1200
Bug 1895901: Make sure we only call included files once
Otherwise we can end up with lib/file. php:38) in htdocs/lib/file.php on line 171
PHP Fatal error: Cannot redeclare serve_file() (previously declared
in htdocs/
Change-Id: I020393a3955437 38c9054783698e2 665160308f8 def665773945013 d5eeda04f8)
Signed-off-by: Robert Lyon <email address hidden>
(cherry picked from commit 5b0a7106f793b2a