/** * Get the subdirectory part of the url, stripped * * @return string */ public static function getStrippedTBGPath() { if (self::$_stripped_tbgpath === null) { self::$_stripped_tbgpath = substr(self::getTBGPath(), 0, strlen(self::getTBGPath()) - 1); } return self::$_stripped_tbgpath; }
/** * Get the subdirectory part of the url, stripped * * @return string */ public static function getStrippedTBGPath() { if (self::$_stripped_tbgpath === null) { self::$_stripped_tbgpath = TBGContext::isCLI() ? '' : mb_substr(self::getTBGPath(), 0, mb_strlen(self::getTBGPath()) - 1); } return self::$_stripped_tbgpath; }