Changeset 15366 for extensions/AMenuManager/amm_pip.class.inc.php
- Timestamp:
- May 28, 2012, 10:12:38 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/AMenuManager/amm_pip.class.inc.php
r12665 r15366 84 84 { 85 85 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')); 87 87 88 88 $block->set_title(base64_decode($this->config['amm_randompicture_title'][$user['language']])); … … 385 385 * 'comment' => (String) 386 386 * 'path' => (String) 387 * 'tn_ext' => (String)388 387 * 'catId' => (String) 389 388 * 'name' => (String) … … 402 401 $sql=array(); 403 402 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 "; 405 404 $sql['from']="FROM ".CATEGORIES_TABLE." c, ".IMAGES_TABLE." i, ".IMAGE_CATEGORY_TABLE." ic "; 406 405 $sql['where']="WHERE c.id = ic.category_id … … 447 446 448 447 $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'])); 450 449 451 450 $returned[]=$row;
Note: See TracChangeset
for help on using the changeset viewer.