0; } // 0 = single site; 1 = multisite subdomain; 2 = multisite subdirectory public static function getMode() { if(is_multisite()) { if (defined('SUBDOMAIN_INSTALL') && SUBDOMAIN_INSTALL) { return 1; } else { return 2; } } else { return 0; } } }