Changeset 2413 for trunk/picture.php


Ignore:
Timestamp:
Jul 2, 2008, 3:11:26 AM (16 years ago)
Author:
rvelices
Message:
  • first use of web services as Ajax: change the privacy level directly from the picture page
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/picture.php

    r2407 r2413  
    2626include(PHPWG_ROOT_PATH.'include/section_init.inc.php');
    2727include_once(PHPWG_ROOT_PATH.'include/functions_picture.inc.php');
    28 include_once(PHPWG_ROOT_PATH.'include/functions_session.inc.php');
    2928
    3029// Check Access and exit when user status is not ok
     
    531530    $template->assign(
    532531      $which_image,
    533       array(
    534         'TITLE' => $picture[$which_image]['name'],
    535         'THUMB_SRC' => $picture[$which_image]['thumbnail'],
    536         // Params slideshow was transmit to navigation buttons
    537         'U_IMG' =>
    538           add_url_params(
    539             $picture[$which_image]['url'], $slideshow_url_params),
    540         'U_DOWNLOAD' => @$picture['current']['download_url'],
     532      array_merge(
     533        $picture[$which_image],
     534        array(
     535          'TITLE' => $picture[$which_image]['name'],
     536          'THUMB_SRC' => $picture[$which_image]['thumbnail'],
     537          // Params slideshow was transmit to navigation buttons
     538          'U_IMG' =>
     539            add_url_params(
     540              $picture[$which_image]['url'], $slideshow_url_params),
     541          'U_DOWNLOAD' => @$picture['current']['download_url'],
     542          )
    541543        )
    542544      );
     
    807809    $template->append(
    808810        'related_tags',
    809         array(
    810           'ID'    => $tag['id'],
    811           'NAME'  => $tag['name'],
    812           'U_TAG' => make_index_url(
     811        array_merge( $tag,
     812          array(
     813            'URL' => make_index_url(
    813814                      array(
    814815                        'tags' => array($tag)
    815816                        )
    816817                      ),
    817           'U_TAG_IMAGE' => duplicate_picture_url(
     818            'U_TAG_IMAGE' => duplicate_picture_url(
    818819                      array(
    819820                        'section' => 'tags',
     
    822823                    )
    823824          )
     825        )
    824826      );
    825827  }
     
    869871$template->assign( 'ELEMENT_CONTENT', $element_content );
    870872
     873if (is_admin())
     874{
     875  $template->assign('available_permission_levels', $conf['available_permission_levels']);
     876}
    871877// +-----------------------------------------------------------------------+
    872878// |                               sub pages                               |
Note: See TracChangeset for help on using the changeset viewer.