mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 17:54:55 +02:00
First public release of MyAAC
This commit is contained in:
12
system/libs/dwoo/dwooAutoload.php
Normal file
12
system/libs/dwoo/dwooAutoload.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
include dirname(__FILE__) . DIRECTORY_SEPARATOR . 'Dwoo.php';
|
||||
|
||||
function dwooAutoload($class)
|
||||
{
|
||||
if (substr($class, 0, 5) === 'Dwoo_') {
|
||||
include DWOO_DIRECTORY . strtr($class, '_', DIRECTORY_SEPARATOR).'.php';
|
||||
}
|
||||
}
|
||||
|
||||
spl_autoload_register('dwooAutoload');
|
Reference in New Issue
Block a user