Subversion Repositories oidplus

Compare Revisions

Regard whitespace Rev 1145 → Rev 1146

/trunk/includes/oidplus_autoloader.inc.php
94,6 → 94,7
$class_name = array_pop($path);
$namespace = implode('\\',$path);
 
if (str_starts_with($class_name, "INTF_OID_")) {
if (($namespace != "ViaThinkSoft\\OIDplus") && str_starts_with($class_name, "INTF_OID_1_3_6_1_4_1_37476_")) {
throw new Exception(_L('Third-party plugin tries to access a ViaThinkSoft-INTF_OID interface "%1", but is not in the ViaThinkSoft\\OIDplus namespace', $fq_class_name));
}
102,7 → 103,6
throw new Exception(_L('ViaThinkSoft plugin tries to access a Third-Party-INTF_OID interface "%1", but is not in the third-party namespace', $fq_class_name));
}
 
if (str_starts_with($class_name, "INTF_OID_")) {
$fake_content = "";
if ($namespace) $fake_content .= "namespace $namespace;\n\n";
$fake_content .= "interface $class_name { }\n\n";