Changeset 17432 for extensions/gvideo


Ignore:
Timestamp:
Aug 6, 2012, 2:55:34 PM (12 years ago)
Author:
mistic100
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/gvideo/admin/add.php

    r17383 r17432  
    7474      );
    7575     
     76    $query = '
     77SELECT id, name, permalink
     78  FROM '.CATEGORIES_TABLE.'
     79  WHERE id = '.$_POST['category'].'
     80;';
     81    $category = pwg_db_fetch_assoc(pwg_query($query));
     82     
    7683    array_push($page['infos'], sprintf(
    7784      l10n('Video successfully added. <a href="%s">View</a>'),
     
    7986        'image_id' => $image_id,
    8087        'category' => array(
    81           'id' => $_POST['category'],
    82           'name' => '',
    83           'permalink' => '',
     88          'id' => $category['id'],
     89          'name' => $category['name'],
     90          'permalink' => $category['permalink'],
    8491          ),
    8592        ))
Note: See TracChangeset for help on using the changeset viewer.