From 6b66fac0cf9d055359959a820a96782dd13b2f51 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Thu, 6 Jan 2022 11:53:18 -0500 Subject: [PATCH] Fix issue processwire/processwire-issues#1500 --- wire/core/ProcessWire.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wire/core/ProcessWire.php b/wire/core/ProcessWire.php index 62699c73..08e455b4 100644 --- a/wire/core/ProcessWire.php +++ b/wire/core/ProcessWire.php @@ -404,7 +404,7 @@ class ProcessWire extends Wire { $config->debug = $debugIf; } - if($config->useFunctionsAPI) { + if($config->useFunctionsAPI && !function_exists("\\ProcessWire\\pages")) { $file = $config->paths->core . 'FunctionsAPI.php'; /** @noinspection PhpIncludeInspection */ include_once($file);