Skip to content

Instantly share code, notes, and snippets.

@dajoho
Last active August 29, 2015 14:06
Show Gist options
  • Save dajoho/29d6a7847bf6da7b6529 to your computer and use it in GitHub Desktop.
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.
<?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