Changeset 17433


Ignore:
Timestamp:
Aug 6, 2012, 2:56:57 PM (8 years ago)
Author:
mistic100
Message:

make url compatible with $confcategory_url_style='id-name';

File:
1 edited

Legend:

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

    r17349 r17433  
    422422      if (!empty($params['album']))
    423423      {
     424        $query = '
     425SELECT id, name, permalink
     426  FROM '.CATEGORIES_TABLE.'
     427  WHERE id = '.$params['album'].'
     428;';
     429        $category = pwg_db_fetch_assoc(pwg_query($query));
     430       
    424431        $url = make_picture_url(array(
    425432          'image_id' => $picture['id'],
    426433          'category' => array(
    427             'id' => $params['album'],
    428             'name' => '',
    429             'permalink' => '',
     434            'id' => $category['id'],
     435            'name' => $category['name'],
     436            'permalink' => $category['permalink'],
    430437            )));
    431438      }
Note: See TracChangeset for help on using the changeset viewer.