public static function urls($Type = null)
{
static $Urls = null;
if ($Urls === null) {
$Urls = array('' => asset('/uploads', true));
$Sender = new stdClass();
$Sender->Returns = array();
$Sender->EventArguments = array();
$Sender->EventArguments['Urls'] =& $Urls;
Gdn::pluginManager()->callEventHandlers($Sender, 'Gdn_Upload', 'GetUrls');
}
if ($Type === null) {
return $Urls;
}
if (isset($Urls[$Type])) {
return $Urls[$Type];
}
return false;
}