Changeset 9114 for extensions/piwishack/include/class.inc.php
- Timestamp:
- Feb 8, 2011, 12:00:16 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/piwishack/include/class.inc.php
r6794 r9114 269 269 <a href="{$ROOT_WAY}{$current.U_IMG}" target=_blank><img src="{$ROOT_WAY}{$SRC_IMG|@replace:'./':''}" /></a> 270 270 */ 271 if (strpos( get_image_url($row), get_absolute_root_url() ) === false) { 272 $abs_root_img= get_absolute_root_url(). str_replace('./', '', get_image_url($row)) ; 273 } else { 274 $abs_root_img= get_image_url($row) ; 275 } 271 276 $S .= '<a href=\"'. 272 277 duplicate_picture_url( … … 274 279 'image_id' => $row['id'], 275 280 'image_file' => $row['file'], 276 )).'\" target=_blank><img src=\"'.get_absolute_root_url(). 277 str_replace('./', '', get_image_url($row)).'\" /></a>'; 281 )).'\" target=_blank><img src=\"'.$abs_root_img.'\" /></a>'; 278 282 $S .= '\n\n'; 279 283 } … … 347 351 [url={$ROOT_WAY}{$current.U_IMG}][img]{$ROOT_WAY}{$SRC_IMG|@replace:'./':''}[/img][/url] 348 352 */ 353 if (strpos( get_image_url($row), get_absolute_root_url() ) === false) { 354 $abs_root_img= get_absolute_root_url(). str_replace('./', '', get_image_url($row)) ; 355 } else { 356 $abs_root_img= get_image_url($row) ; 357 } 349 358 $S .= '[url='. 350 359 duplicate_picture_url( … … 352 361 'image_id' => $row['id'], 353 362 'image_file' => $row['file'], 354 )).'][img]'.get_absolute_root_url(). 355 str_replace('./', '', get_image_url($row)).'[/img][/url]'; 363 )).'][img]'.$abs_root_img.'[/img][/url]'; 356 364 $S .= '\n\n'; 357 365 }
Note: See TracChangeset
for help on using the changeset viewer.