Changeset 12165


Ignore:
Timestamp:
Sep 14, 2011, 11:20:05 PM (9 years ago)
Author:
plg
Message:

bug fixed: img src correct on random photo, even if question_mark_in_urls = false

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/ExtendedDescription/main.inc.php

    r12154 r12165  
    352352function extdesc_get_random_photo($category_id)
    353353{
     354  include_once(PHPWG_ROOT_PATH.'include/functions_picture.inc.php');
     355 
    354356  $query = '
    355357SELECT
     358    id,
    356359    path
    357360  FROM '.IMAGES_TABLE.'
     
    364367  while ($row = pwg_db_fetch_assoc($result))
    365368  {
    366     return '<img src="'.$row['path'].'">';
     369    return '<img src="'.get_element_url($row).'">';
    367370  }
    368371
Note: See TracChangeset for help on using the changeset viewer.