diff --git a/picture.php b/picture.php
index 99c1529e1..092b2aed2 100644
--- a/picture.php
+++ b/picture.php
@@ -772,7 +772,8 @@ if (is_admin())
'U_CADDIE' => add_url_params($url_self,
array('action'=>'add_to_caddie')
),
- 'U_ADMIN' => $url_admin,
+ 'U_PHOTO_ADMIN' => $url_admin,
+ 'U_ADMIN' => $url_admin, // TEMP 2.5 for backward compatibility
)
);
@@ -985,7 +986,7 @@ if ($conf['picture_menu'] AND (!isset($themeconf['hide_menu_on']) OR !in_array('
{
if (!isset($page['start'])) $page['start'] = 0;
include( PHPWG_ROOT_PATH.'include/menubar.inc.php');
- if (is_admin()) $template->assign('U_ADMIN', $url_admin); // overwrited by the menu
+ if (is_admin()) $template->assign('U_ADMIN', $url_admin); // overwrited by the menu TEMP 2.5 for backward compatibility
}
include(PHPWG_ROOT_PATH.'include/page_header.php');
diff --git a/themes/default/template/picture.tpl b/themes/default/template/picture.tpl
index 3faa4ffba..5bf59be96 100644
--- a/themes/default/template/picture.tpl
+++ b/themes/default/template/picture.tpl
@@ -87,8 +87,8 @@ jQuery("#derivativeSwitchBox").on("mouseleave click", function() {
{'representative'|@translate}
{/if}{/strip}
-{strip}{if isset($U_ADMIN)}
-
+{strip}{if isset($U_PHOTO_ADMIN)}
+
{'Edit'|@translate}
{/if}{/strip}