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 65 65 $this->table_ref = $this->core->prefix.'post_media'; 66 66 $root = $this->core->blog->public_path; 67 67 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); 73 69 74 70 if (!is_dir($root)) { 75 71 throw new Exception(sprintf(__('Directory %s does not exist.'),$root));
