From: Raphaël Barrois Date: Thu, 21 Jan 2010 00:53:22 +0000 (+0100) Subject: Add autoload for PFC_* classes X-Git-Tag: xorg/1.0.0~332^2~281 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=f57e5fa87ecd2af3e658e126a626a1afbf37414e;p=platal.git Add autoload for PFC_* classes Signed-off-by: Raphaël Barrois --- diff --git a/include/common.inc.php b/include/common.inc.php index 54802e7..27209e6 100644 --- a/include/common.inc.php +++ b/include/common.inc.php @@ -26,6 +26,9 @@ function __autoload($cls) if (substr($cls, 0, 4) == 'ufc_' || substr($cls, 0, 4) == 'ufo_') { __autoload('userfilter'); return; + } else if (substr($cls, 0, 4) == 'pfc_' || substr($cls, 0, 4) == 'pfo_' || substr($cls, 0, 8) == 'plfilter') { + __autoload('plfilter'); + return; } else if (substr($cls, -3, 3) == 'req') { @include 'validations.inc.php'; return;