Beispiel #1
0
 public static function initialize()
 {
     if (extension_loaded('midgard2')) {
         //we need to provide replacements for some deprecated mgd1 functions
         require 'midgard1.php';
     }
     require 'ragnaroek.php';
     if (class_exists('midgardmvc_core')) {
         self::$_implementation = new midcom_compat_ragnaland();
     } else {
         if ($_SERVER['REQUEST_URI'] == '/midcom-test-init') {
             self::$_implementation = new midcom_compat_unittest();
         } else {
             self::$_implementation = new midcom_compat_default();
         }
     }
 }