Changeset 375:91268cf48758 for admin/media_item.php
- Timestamp:
- 06/15/11 15:14:25 (14 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/media_item.php
r270 r375 394 394 if ($file->media_image) 395 395 { # We look for thumbnails too 396 $media_root = $core->blog->host.path::clean($core->blog->settings->system->public_url).'/'; 396 if (preg_match('#^http(s)?://#',$this->core->blog->settings->system->public_url)) { 397 $media_root = $core->blog->settings->system->public_url; 398 } else { 399 $media_root = $core->blog->host.path::clean($core->blog->settings->system->public_url).'/'; 400 } 397 401 foreach ($file->media_thumb as $v) { 398 402 $v = preg_replace('/^'.preg_quote($media_root,'/').'/','',$v);
Note: See TracChangeset
for help on using the changeset viewer.