Heine

  • home
  • drupal
  • drupal core commits
  • about
Home › Drupal Core Commits

Commit 339506 by dries

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

--- <a href="http://drupalcode.org/viewvc/drupal/drupal/modules/toolbar/toolbar.module" title="http://drupalcode.org/viewvc/drupal/drupal/modules/toolbar/toolbar.module" rel="nofollow">http://drupalcode.org/viewvc/drupal/drupal/modules/toolbar/toolbar.module</a>  2010/01/30 07:59:26     1.34
+++ <a href="http://drupalcode.org/viewvc/drupal/drupal/modules/toolbar/toolbar.module" title="http://drupalcode.org/viewvc/drupal/drupal/modules/toolbar/toolbar.module" rel="nofollow">http://drupalcode.org/viewvc/drupal/drupal/modules/toolbar/toolbar.module</a>  2010/03/10 14:46:23     1.35
@@ -142,7 +142,7 @@
  * Add some page classes, so global page theming can adjust to the toolbar.
  */
 function toolbar_preprocess_html(&$vars) {
-  if (user_access('access toolbar')) {
+  if (isset($vars['page_top']['toolbar']) && user_access('access toolbar')) {
     $vars['classes_array'][] = 'toolbar';
     if (!_toolbar_is_collapsed()) {
       $vars['classes_array'][] = 'toolbar-drawer';

No votes yet
  • Drupal Core
  • Download patch

Recent posts

  • Planet Drupal past and current
  • Help! - Cannot access a global variable.
  • Why is my module's update hook not listed on update.php's selection form?
  • How do I add a class to a link generated with l()
  • ZeroDayScan - Full path disclosure bug in Drupal 6.16 (0day)
more

Security reviews

  • Afraid custom code makes your site vulnerable?
  • You don't really trust that module you just downloaded from Drupal.org?

Sleep better after a security review.

Tags

Captcha CSRF Drupal embed Input Format modx OpenID Performance Planet Drupal rants Security Varnish
more tags
  • home
  • drupal
  • drupal core commits
  • about

Copyright © 2010 by Heine Deelstra. All rights reserved.