Changeset 1861 for trunk/picture.php


Ignore:
Timestamp:
Feb 27, 2007, 2:56:16 AM (17 years ago)
Author:
rvelices
Message:
  • refactoring pagecategory before 1.7 release

pagecategory is not an id anymore, but an associative array of category info
all of pagecat_xxx or pageuppercats merged into one
simplifies calls to make_index_url
give plugins a clean start for page variables for version 1.7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/picture.php

    r1844 r1861  
    3737if (isset($page['category']))
    3838{
    39   check_restrictions($page['category']);
     39  check_restrictions($page['category']['id']);
    4040}
    4141
     
    200200UPDATE '.CATEGORIES_TABLE.'
    201201  SET representative_picture_id = '.$page['image_id'].'
    202   WHERE id = '.$page['category'].'
     202  WHERE id = '.$page['category']['id'].'
    203203;';
    204204        pwg_query($query);
     
    421421$url_admin =
    422422  get_root_url().'admin.php?page=picture_modify'
    423   .'&cat_id='.(isset($page['category']) ? $page['category'] : '')
     423  .'&cat_id='.(isset($page['category']) ? $page['category']['id'] : '')
    424424  .'&image_id='.$page['image_id']
    425425;
Note: See TracChangeset for help on using the changeset viewer.