aboutsummaryrefslogtreecommitdiffstats
path: root/picture.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2008-07-02 01:11:26 +0000
committerrvelices <rv-github@modusoptimus.com>2008-07-02 01:11:26 +0000
commit644f8ee621549ce1a60f3e1e0dbff83eab8e0c87 (patch)
treebb44ac813d654261bcdc3b5dfd2bc0e5d7c66b53 /picture.php
parentd0e86480c46b6f48dfb37284b20b99b9ab862e9a (diff)
- first use of web services as Ajax: change the privacy level directly from the picture page
git-svn-id: http://piwigo.org/svn/trunk@2413 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--picture.php34
1 files changed, 20 insertions, 14 deletions
diff --git a/picture.php b/picture.php
index 1e6e1c811..84dd43c04 100644
--- a/picture.php
+++ b/picture.php
@@ -25,7 +25,6 @@ define('PHPWG_ROOT_PATH','./');
include_once(PHPWG_ROOT_PATH.'include/common.inc.php');
include(PHPWG_ROOT_PATH.'include/section_init.inc.php');
include_once(PHPWG_ROOT_PATH.'include/functions_picture.inc.php');
-include_once(PHPWG_ROOT_PATH.'include/functions_session.inc.php');
// Check Access and exit when user status is not ok
check_status(ACCESS_GUEST);
@@ -530,14 +529,17 @@ foreach (array('first','previous','next','last', 'current') as $which_image)
{
$template->assign(
$which_image,
- array(
- 'TITLE' => $picture[$which_image]['name'],
- 'THUMB_SRC' => $picture[$which_image]['thumbnail'],
- // Params slideshow was transmit to navigation buttons
- 'U_IMG' =>
- add_url_params(
- $picture[$which_image]['url'], $slideshow_url_params),
- 'U_DOWNLOAD' => @$picture['current']['download_url'],
+ array_merge(
+ $picture[$which_image],
+ array(
+ 'TITLE' => $picture[$which_image]['name'],
+ 'THUMB_SRC' => $picture[$which_image]['thumbnail'],
+ // Params slideshow was transmit to navigation buttons
+ 'U_IMG' =>
+ add_url_params(
+ $picture[$which_image]['url'], $slideshow_url_params),
+ 'U_DOWNLOAD' => @$picture['current']['download_url'],
+ )
)
);
}
@@ -806,21 +808,21 @@ if ( count($tags) )
{
$template->append(
'related_tags',
- array(
- 'ID' => $tag['id'],
- 'NAME' => $tag['name'],
- 'U_TAG' => make_index_url(
+ array_merge( $tag,
+ array(
+ 'URL' => make_index_url(
array(
'tags' => array($tag)
)
),
- 'U_TAG_IMAGE' => duplicate_picture_url(
+ 'U_TAG_IMAGE' => duplicate_picture_url(
array(
'section' => 'tags',
'tags' => array($tag)
)
)
)
+ )
);
}
}
@@ -868,6 +870,10 @@ $element_content = trigger_event(
);
$template->assign( 'ELEMENT_CONTENT', $element_content );
+if (is_admin())
+{
+ $template->assign('available_permission_levels', $conf['available_permission_levels']);
+}
// +-----------------------------------------------------------------------+
// | sub pages |
// +-----------------------------------------------------------------------+