]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Selector to allow styles when a user is logged in.
authorSarven Capadisli <csarven@controlyourself.ca>
Wed, 1 Apr 2009 01:03:00 +0000 (01:03 +0000)
committerEvan Prodromou <evan@controlyourself.ca>
Wed, 1 Apr 2009 06:06:49 +0000 (02:06 -0400)
lib/action.php

index 975c2bfcb8a23adb01c4ec7dbeb479119547479c..f9f3c35d973242e2af625682d5f354ed7ee32e78 100644 (file)
@@ -299,7 +299,9 @@ class Action extends HTMLOutputter // lawsuit
      */
     function showBody()
     {
-        $this->elementStart('body', array('id' => $this->trimmed('action')));
+        $this->elementStart('body', (common_current_user()) ? array('id' => $this->trimmed('action'),
+                                                                    'class' => 'user_in')
+                                                            : array('id' => $this->trimmed('action')));
         $this->elementStart('div', array('id' => 'wrap'));
         if (Event::handle('StartShowHeader', array($this))) {
             $this->showHeader();