Ignore:
Timestamp:
May 12, 2011, 11:27:21 AM (13 years ago)
Author:
flop25
Message:

really compatible 2.2

File:
1 edited

Legend:

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

    r9286 r10853  
    8989    $template->assign('AK_THUMBNAILS_LOC', $this->plugin_config->ak_thumbnails_loc);
    9090    $template->assign('AK_PIC_SRC', get_image_url($images[$this->current_picture]));
     91                  $url = duplicate_picture_url(
     92        array(
     93          'image_id' => $images[$this->current_picture]['id'] ,
     94          'image_file' => $images[$this->current_picture]['file']
     95        ),
     96        array('start')
     97      );
     98
     99    $template->assign('AK_PIC_URL', $url);
    91100
    92101    $template->assign('AK_NEXT', $this->getNextPicture($this->current_picture, $images));
     
    132141      $tpl_vars = $GLOBALS['template']->smarty->_tpl_vars;
    133142      $response['AK_PIC_SRC'] = $tpl_vars['SRC_IMG'];
     143      $response['AK_PIC_URL'] = $tpl_vars['current']['url'];
    134144      $response['AK_PIC_ALT'] = $tpl_vars['ALT_IMG'];
    135145      if (isset($tpl_vars['ALT_IMG'])) {
Note: See TracChangeset for help on using the changeset viewer.