Last active
August 29, 2015 14:06
-
-
Save dajoho/29d6a7847bf6da7b6529 to your computer and use it in GitHub Desktop.
Prevents OXID throwing a whitepage/redirect if a module exists in the database (aModules) that doesn't exist in the filesystem.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Put this in modules/functions.php */ | |
require_once __DIR__.'/../core/oxfunctions.php'; | |
function gn2_autoload_shim($class) { (substr($class, -7) == "_parent") ? eval('class '.$class.' {}') : ""; } | |
spl_autoload_register('gn2_autoload_shim'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment