Changeset 6391
- Timestamp:
- 07/07/08 13:29:28 (6 months ago)
- Files:
-
- 1 modified
-
branches/1.7/lib/view/ownerView.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.7/lib/view/ownerView.php
r5576 r6391 173 173 global $service, $blogURL, $adminSkinSetting; 174 174 175 $spacerURL = $service['path'].$adminSkinSetting['skin'].'/image/spacer.gif'; 176 175 177 $blogid = getBlogId(); 176 178 if(empty($attachments) || ( … … 178 180 strpos($attachments[0]['name'] ,'.jpg') === false && 179 181 strpos($attachments[0]['name'] ,'.png') === false)) { 180 $fileName = "{$service['path']}{$adminSkinSetting['skin']}/image/spacer.gif";182 $fileName = $spacerURL; 181 183 } else { 182 184 $fileName = "{$service['path']}/attach/$blogid/{$attachments[0]['name']}"; … … 313 315 height = 90; 314 316 } 315 document.getElementById('previewSelected').innerHTML = '<img src="<?php echo $service['path'];?>/attach/<?php echo $blogid;?>/'+fileName+'?randseed='+Math.random()+'" width="' + parseInt(width) + '" height="' + parseInt(height) + '" alt="" style="margin-top: ' + ((90-height)/2) + 'px" onerror=" this.src=\'<?php echo $service['path'] . $adminSkinSetting['skin'];?>/image/spacer.gif\'"/>';317 document.getElementById('previewSelected').innerHTML = '<img src="<?php echo $service['path'];?>/attach/<?php echo $blogid;?>/'+fileName+'?randseed='+Math.random()+'" width="' + parseInt(width) + '" height="' + parseInt(height) + '" alt="" style="margin-top: ' + ((90-height)/2) + 'px" onerror="if (this.src != \'<?php echo $spacerURL; ?>\') { this.src=\'<?php echo $spacerURL; ?>\' }"/>'; 316 318 } 317 319 catch(e) { }
