Changeset 12165
- Timestamp:
- Sep 14, 2011, 11:20:05 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/ExtendedDescription/main.inc.php
r12154 r12165 352 352 function extdesc_get_random_photo($category_id) 353 353 { 354 include_once(PHPWG_ROOT_PATH.'include/functions_picture.inc.php'); 355 354 356 $query = ' 355 357 SELECT 358 id, 356 359 path 357 360 FROM '.IMAGES_TABLE.' … … 364 367 while ($row = pwg_db_fetch_assoc($result)) 365 368 { 366 return '<img src="'. $row['path'].'">';369 return '<img src="'.get_element_url($row).'">'; 367 370 } 368 371
Note: See TracChangeset
for help on using the changeset viewer.