diff options
author | rvelices <rv-github@modusoptimus.com> | 2013-02-25 21:16:10 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2013-02-25 21:16:10 +0000 |
commit | e9dab9db7441566a963827da30a56a957458e5a4 (patch) | |
tree | d1b0b07ce4fe2ff3e3f397b3c5a9e4f1f5bc1cce /picture.php | |
parent | 99214da72de131cd124a6a8d5d5c85680e241462 (diff) |
on picture.php replace U_ADMIN url with U_PHOTO_ADMIN url to avoid being overriden by menubar and having to redefine it (U_ADMIN still there for 2.5 version for backward compatibility)
git-svn-id: http://piwigo.org/svn/trunk@21039 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'picture.php')
-rw-r--r-- | picture.php | 5 |
1 files changed, 3 insertions, 2 deletions
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'); |