- merge r2355 from 1.7 to trunk: fix display of menubar related tags in IE7

- optimized sql query in permalinks
- remove some unused global variable declarations
- fix bug in admin/themeconf.inc.php

git-svn-id: http://piwigo.org/svn/trunk@2356 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rvelices
2008-05-23 10:15:48 +00:00
parent 9300a7118d
commit 553727dffa
7 changed files with 14 additions and 17 deletions
+3 -4
View File
@@ -365,10 +365,9 @@ function get_cat_id_from_permalinks( $permalinks, &$idx )
$in .= '"'.$permalink.'"';
}
$query ='
SELECT c.id, op.permalink, 1 AS is_old
FROM '.OLD_PERMALINKS_TABLE.' op INNER JOIN '.CATEGORIES_TABLE.' c
ON op.cat_id=c.id
WHERE op.permalink IN ('.$in.')
SELECT cat_id AS id, permalink, 1 AS is_old
FROM '.OLD_PERMALINKS_TABLE.'
WHERE permalink IN ('.$in.')
UNION
SELECT id, permalink, 0 AS is_old
FROM '.CATEGORIES_TABLE.'
+1 -1
View File
@@ -865,7 +865,7 @@ function ws_session_logout($params, &$service)
function ws_session_getStatus($params, &$service)
{
global $user, $lang_info;
global $user;
$res = array();
$res['username'] = is_a_guest() ? 'guest' : $user['username'];
foreach ( array('status', 'template', 'theme', 'language') as $k )
-1
View File
@@ -152,7 +152,6 @@ class PwgRestEncoder extends PwgResponseEncoder
{
function encodeResponse($response)
{
global $lang_info;
$respClass = strtolower( get_class($response) );
if ($respClass=='pwgerror')
{
-5
View File
@@ -16,11 +16,6 @@ H1, #theHeader {
width: 99%; /* buggy IE box model */
}
/* fix tag clouds : IE doesn't like anything but inline */
#menubar #menuTagCloud LI
{
display: inline;
}
/* fix quickconnect layout */
FORM#quickconnect FIELDSET {
+6
View File
@@ -10,5 +10,11 @@
top: -1px; /* move the container up by the same amount */
margin-bottom: 5px;
}
#menubar #menuTagCloud LI
{
display: inline-block;/* required for Safari 3.1 - otherwise overflows on the right */
}
/* end Safari/Konqueror */
+1 -3
View File
@@ -144,8 +144,6 @@ input#qsearchInput {
#menubar #menuTagCloud LI
{
display: inline; /* FF doesn't see the inline-block below */
display: inline;
white-space: nowrap; /* No line break in the LI but Opera set nowrap to */
display: inline-block;/* the whole UL, inline-block fix it. */
/* IE wants inline in fix-ie5-ie6.css */
}
+3 -3
View File
@@ -14,12 +14,12 @@ function selected_admin_menu()
case 'cat_list':
case 'cat_modify':
case 'cat_move':
case 'cat_options':
case 'cat_options':
case 'element_set':
case 'cat_perm':
case 'permalinks':
case 'picture_modify':
if (isset($_GET['cat']) and $_GET['cat']='caddie') {
if (isset($_GET['cat']) and $_GET['cat']=='caddie') {
return 3;
}
return 2;
@@ -40,7 +40,7 @@ function selected_admin_menu()
case 'plugins_list':
case 'plugin':
return 5;
}
}
}
return 0;
}