dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfaf6cc
)
Add profiling to getEffectiveGroups()
author
Chad Horohoe
<demon@users.mediawiki.org>
Thu, 22 Oct 2009 12:12:12 +0000
(12:12 +0000)
committer
Chad Horohoe
<demon@users.mediawiki.org>
Thu, 22 Oct 2009 12:12:12 +0000
(12:12 +0000)
includes/User.php
patch
|
blob
|
history
diff --git
a/includes/User.php
b/includes/User.php
index
6b5e8b6
..
2cb0203
100644
(file)
--- a/
includes/User.php
+++ b/
includes/User.php
@@
-2053,6
+2053,7
@@
class User {
*/
function getEffectiveGroups( $recache = false ) {
if ( $recache || is_null( $this->mEffectiveGroups ) ) {
+ wfProfileIn( __METHOD__ );
$this->mEffectiveGroups = $this->getGroups();
$this->mEffectiveGroups[] = '*';
if( $this->getId() ) {
@@
-2066,6
+2067,7
@@
class User {
# Hook for additional groups
wfRunHooks( 'UserEffectiveGroups', array( &$this, &$this->mEffectiveGroups ) );
}
+ wfProfileOut( __METHOD__ );
}
return $this->mEffectiveGroups;
}