Ignore:
Timestamp:
May 28, 2012, 10:12:38 AM (12 years ago)
Author:
grum
Message:

feature:2642 - Compatibility with Piwigo 2.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/AMenuManager/amm_pip.class.inc.php

    r12665 r15366  
    8484    {
    8585      GPCCore::addHeaderJS('jquery', 'themes/default/js/jquery.min.js');
    86       GPCCore::addHeaderJS('amm.randomPictPublic', 'plugins/AMenuManager/js/amm_randomPictPublic'.GPCCore::getMinified().'.js', array('jquery'));
     86      GPCCore::addHeaderJS('amm.randomPictPublic', 'plugins/AMenuManager/js/amm_randomPictPublic.js', array('jquery'));
    8787
    8888      $block->set_title(base64_decode($this->config['amm_randompicture_title'][$user['language']]));
     
    385385   *  'comment'   => (String)
    386386   *  'path'      => (String)
    387    *  'tn_ext'    => (String)
    388387   *  'catId'     => (String)
    389388   *  'name'      => (String)
     
    402401    $sql=array();
    403402
    404     $sql['select']="SELECT i.id as image_id, i.file as image_file, i.comment, i.path, i.tn_ext, c.id as catid, c.name, c.permalink, RAND() as rndvalue, i.name as imgname ";
     403    $sql['select']="SELECT i.id as image_id, i.file as image_file, i.comment, i.path, c.id as catid, c.name, c.permalink, RAND() as rndvalue, i.name as imgname ";
    405404    $sql['from']="FROM ".CATEGORIES_TABLE." c, ".IMAGES_TABLE." i, ".IMAGE_CATEGORY_TABLE." ic ";
    406405    $sql['where']="WHERE c.id = ic.category_id
     
    447446
    448447        $row['link']=make_picture_url($row);
    449         $row['thumb']=get_thumbnail_url($row);
     448        $row['thumb']=DerivativeImage::thumb_url(array('id'=>$row['image_id'], 'path'=>$row['path']));
    450449
    451450        $returned[]=$row;
Note: See TracChangeset for help on using the changeset viewer.