Changeset 9114


Ignore:
Timestamp:
Feb 8, 2011, 12:00:16 PM (13 years ago)
Author:
Gotcha
Message:

Error in the path with multi-albums
bug:2183

Location:
extensions/piwishack
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/piwishack/include/class.inc.php

    r6794 r9114  
    269269           <a href="{$ROOT_WAY}{$current.U_IMG}" target=_blank><img src="{$ROOT_WAY}{$SRC_IMG|@replace:'./':''}" /></a>
    270270           */
     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           }       
    271276            $S .= '<a href=\"'.
    272277          duplicate_picture_url(
     
    274279              'image_id' => $row['id'],
    275280              '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>';
    278282                $S .= '\n\n';
    279283      }
     
    347351           [url={$ROOT_WAY}{$current.U_IMG}][img]{$ROOT_WAY}{$SRC_IMG|@replace:'./':''}[/img][/url]
    348352           */
     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           }
    349358            $S .= '[url='.
    350359          duplicate_picture_url(
     
    352361              'image_id' => $row['id'],
    353362              '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]';
    356364            $S .= '\n\n';
    357365      }
  • extensions/piwishack/template/controller.tpl

    r6794 r9114  
    2525    <tr>
    2626      <td class="img_share">
    27         <a <img src="../piwishack/icon/thumbnail.png" alt="Piwishack thumbnail" width=64 height=64/></a>
     27        <img src="../piwishack/icon/thumbnail.png" alt="Piwishack thumbnail" width=64 height=64/>
    2828      </td>
    2929      <td>
     
    4545    <tr>
    4646      <td class="img_share">
    47         <a <img src="../piwishack/icon/web.png" alt="Piwishack thumbnail" width=128 height=128/></a>
     47        <img src="../piwishack/icon/web.png" alt="Piwishack thumbnail" width=128 height=128/>
    4848          </td>
    4949          <td>
Note: See TracChangeset for help on using the changeset viewer.