When extension is installed first time, it returns proper url with domain included. But if I try to run extension setup script again (by deleting row in core_resource table) it return just "/". And for Mage::getBaseUrl() return "index.php".
Inside mysql4-upgrade-1.1.3-1.1.4.php:
$installer = $this;
$mediaPath = Mage::getBaseUrl('media');
var_dump($mediaPath());
var_dump(Mage::getBaseUrl()); exit;
Am I forgetting something? Is there any other way to get media url with domain included?