Changeset 16014 for extensions/lmt/lmt_ajax.php
- Timestamp:
- Jun 24, 2012, 9:19:27 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/lmt/lmt_ajax.php
r15341 r16014 25 25 */ 26 26 if(!isset($_REQUEST['ajaxfct'])) $_REQUEST['ajaxfct']=''; 27 if(preg_match('/^admin\./i', $_REQUEST['ajaxfct'])) 28 { 29 define('IN_ADMIN', true); 30 } 27 if(preg_match('/^admin\./i', $_REQUEST['ajaxfct'])) define('IN_ADMIN', true); 28 if(!defined('AJAX_CALL')) define('AJAX_CALL', true); 31 29 32 30 // the common.inc.php file loads all the main.inc.php plugins files … … 60 58 global $user; 61 59 62 if(!isset($_REQUEST['ajaxfct'])) $_REQUEST['ajaxfct']='';60 GPCAjax::checkToken(); 63 61 if(!isset($_REQUEST['errcode'])) $_REQUEST['errcode']=''; 64 62 … … 198 196 'file' => $row['file'], 199 197 'cat' => $tmpcat, 200 'thumb' => str_replace(PHPWG_ROOT_PATH, './', DerivativeImage:: thumb_url(array('id'=>$row['image_id'], 'path'=>$row['path'])))198 'thumb' => str_replace(PHPWG_ROOT_PATH, './', DerivativeImage::url(IMG_SQUARE, array('id'=>$row['image_id'], 'path'=>$row['path']))) 201 199 ); 202 200 } … … 290 288 'file' => $row['file'], 291 289 'cat' => $tmpcat, 292 'thumb' => str_replace(PHPWG_ROOT_PATH, './', DerivativeImage:: thumb_url(array('id'=>$row['image_id'], 'path'=>$row['path'])))290 'thumb' => str_replace(PHPWG_ROOT_PATH, './', DerivativeImage::url(IMG_SQUARE, array('id'=>$row['image_id'], 'path'=>$row['path']))) 293 291 ); 294 292 }
Note: See TracChangeset
for help on using the changeset viewer.