https://bugzilla.wikimedia.org/show_bug.cgi?id=12509
Daniel Friesen <mediawiki-b...@nadir-seen-fire.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mediawiki-bugs@nadir-seen-f | |ire.com --- Comment #11 from Daniel Friesen <mediawiki-b...@nadir-seen-fire.com> 2011-11-21 09:45:08 UTC --- The proper way to do this now in current code: - Use userpage-anon and userpage-user for classes, they fit in better with the ns-* page-* pattern that we already have going with classes. ip-userpage is an odd break from that. (note don't use something like page-anonuser since that would conflict with a page titled [[Anonuser]]) - Code would go in OutputPage::headElement, likely right after the `$bodyAttrs['class'] .= ' ' . $sk->getPageClasses( $this->getTitle() );` line. - You'd probably move the $this->getTitle() from that to a $title variable and use it in getPageClasses as well. if ( $title->getNamespace() == NS_USER || $title->getNamespace() == NS_USER_TALK ) { // Don't show the class on subpages if ( !$title->isSubpage() ) { $bodyAttrs['class'] .= ' ' . ( User::isIP( $this->getTitle() ) ? 'userpage-anon' : 'userpage-user' ); } } -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l