Fixed getBaseUrl() in common/util.php.