lib/functions.php

Aleksander Machniak machniak at kolabsys.com
Thu Sep 19 14:59:23 CEST 2013


 lib/functions.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 055bcc5683d5a2f1ff252a6b3c0cbcda81e3c36b
Author: Aleksander Machniak <alec at alec.pl>
Date:   Thu Sep 19 14:59:00 2013 +0200

    We're not using MDB2 here - simplified regexp in autoloader

diff --git a/lib/functions.php b/lib/functions.php
index 98dc949..016f1f3 100644
--- a/lib/functions.php
+++ b/lib/functions.php
@@ -63,7 +63,7 @@ mb_internal_encoding(KADM_CHARSET);
 // register autoloader
 function class_autoloader($classname)
 {
-    $classname = preg_replace('/(Net|MDB2|HTTP)_(.+)/', "\\1/\\2", $classname);
+    $classname = preg_replace('/(Net|HTTP)_(.+)/', "\\1/\\2", $classname);
 
     if ($fp = @fopen("$classname.php", 'r', true)) {
         include_once "$classname.php";




More information about the commits mailing list