function render()
 {
     $config =& Config::getConfig();
     $this->setValue("blogname", StringUtils::text2url($this->_blogInfo->getBlog()));
     $this->setValue("requestformat", $config->getValue("request_format_mode"));
     $this->setValue("baseurl", $config->getValue("base_url"));
     $this->setValue("htmlarea", $config->getValue("htmlarea_enabled"));
     $destination = $this->getValue("destination");
     $this->_pagerUrl = "?op=resourceList&&mode={$destination}&page=";
     parent::render();
 }
 /**
  * Returns the link to a resource
  *
  * @param resource Generates the correct link to fetch a resource
  */
 function resourceDownloadLink($resource)
 {
     $blogId = $this->_blogInfo->getId();
     $ownerId = $resource->getOwnerId();
     if ($blogId != $ownerId) {
         $blogId = $ownerId;
         $blogs =& new Blogs();
         $blogInfo = $blogs->getBlogInfo($blogId);
         $blogShortName = $blogInfo->getBlog();
     } else {
         $blogShortName = $this->_blogInfo->getBlog();
     }
     $resourceLink = $this->getBaseUrl() . '/' . $blogId . '_' . StringUtils::text2url($blogShortName) . '/get/' . rawurlencode($resource->getFileName());
     return $resourceLink;
 }