From e98a893a1f0fcc3a342776b0825bf5b4ba55c3b9 Mon Sep 17 00:00:00 2001 From: Andreas Gohr <andi@splitbrain.org> Date: Mon, 16 Feb 2009 19:03:24 +0100 Subject: [PATCH] suppress errors when trying to load a non existant plugin Ignore-this: 21eafbc145c8abfeb8450d9a1234bae1 darcs-hash:20090216180324-7ad00-2628f381cee27f24f120016a970aabca7d853c7c.gz --- inc/plugincontroller.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/plugincontroller.class.php b/inc/plugincontroller.class.php index 924a475e0..f12c0826a 100644 --- a/inc/plugincontroller.class.php +++ b/inc/plugincontroller.class.php @@ -79,7 +79,7 @@ class Doku_Plugin_Controller { $dir = $this->get_directory($plugin); $file = $component ? "$type/$component.php" : "$type.php"; - if (!include_once(DOKU_PLUGIN."$dir/$file")) { + if (!@include_once(DOKU_PLUGIN."$dir/$file")) { return null; } -- GitLab