Changeset 3877


Ignore:
Timestamp:
Sep 19, 2009, 1:13:14 PM (11 years ago)
Author:
nikrou
Message:

method makeAkUrl() give not the correct url

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/akBookStyle/trunk/include/akContent.class.php

    r3876 r3877  
    129129  /*** privates methods ***/
    130130  private function makeAkUrl($image) {
    131     return sprintf('%s/picture/%d', $this->category_url, $image['ID']);
     131    return duplicate_picture_url(array('image_id' => $image['id'],
     132                                       'image_file' => $image['file']
     133                                       ),
     134                                 array('start')
     135                                 );
    132136  }
    133137
     
    161165    $previous = $current-1;
    162166    if ($previous>0) {
    163       return $this->makeAkUrl(array('ID' => $images[$previous]['id']));
     167      return $this->makeAkUrl($images[$previous]);
    164168    } else {
    165169      return null;
     
    170174    $next = $current+1;
    171175    if ($next<count($images)) {
    172       return $this->makeAkUrl(array('ID' => $images[$next]['id']));
     176      return $this->makeAkUrl($images[$next]);
    173177    } else {
    174178      return null;
Note: See TracChangeset for help on using the changeset viewer.