/** * @param $baseurlpath string The baseurl path to use when constructing URLs */ public static function setBaseURLPath($baseurlpath) { if (empty($baseurlpath) || $baseurlpath == '/') { $baseurlpath = '/'; } else { self::$_baseurlpath = '/' . trim($baseurlpath, '/') . '/'; } }