Dotclear

Ticket #877: class.dc.media.php.patch

File class.dc.media.php.patch, 702 bytes (added by dooblem, 16 years ago)
  • class.dc.media.php

    old new  
    6565          $this->table_ref = $this->core->prefix.'post_media'; 
    6666          $root = $this->core->blog->public_path; 
    6767 
    68           if (preg_match('#^http(s)?://#',$this->core->blog->settings->public_url)) { 
    69                $root_url = rawurldecode($this->core->blog->settings->public_url); 
    70           } else { 
    71                $root_url = rawurldecode($this->core->blog->host.path::clean($this->core->blog->settings->public_url)); 
    72           } 
     68          $root_url = rawurldecode($this->core->blog->settings->public_url); 
    7369           
    7470          if (!is_dir($root)) { 
    7571               throw new Exception(sprintf(__('Directory %s does not exist.'),$root)); 

Sites map