- Patch #715762 and #684268 by seutje, casey: large gap above node preview in overlay.

merge-requests/26/head
Dries Buytaert 2010-03-10 14:46:23 +00:00
parent 6156949804
commit 879eb7ef3c
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ function toolbar_pre_render($toolbar) {
* Add some page classes, so global page theming can adjust to the toolbar. * Add some page classes, so global page theming can adjust to the toolbar.
*/ */
function toolbar_preprocess_html(&$vars) { function toolbar_preprocess_html(&$vars) {
if (user_access('access toolbar')) { if (isset($vars['page_top']['toolbar']) && user_access('access toolbar')) {
$vars['classes_array'][] = 'toolbar'; $vars['classes_array'][] = 'toolbar';
if (!_toolbar_is_collapsed()) { if (!_toolbar_is_collapsed()) {
$vars['classes_array'][] = 'toolbar-drawer'; $vars['classes_array'][] = 'toolbar-drawer';