dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix some spacing
[lhc/web/wiklou.git]
/
includes
/
Hooks.php
diff --git
a/includes/Hooks.php
b/includes/Hooks.php
index
c9c0679
..
bf27fde
100644
(file)
--- a/
includes/Hooks.php
+++ b/
includes/Hooks.php
@@
-57,7
+57,6
@@
class Hooks {
unset( self::$handlers[$name] );
}
unset( self::$handlers[$name] );
}
-
/**
* Attach an event handler to a given hook
*
/**
* Attach an event handler to a given hook
*
@@
-138,6
+137,8
@@
class Hooks {
* @param $event String: event name
* @param $args Array: parameters passed to hook functions
*
* @param $event String: event name
* @param $args Array: parameters passed to hook functions
*
+ * @throws MWException
+ * @throws FatalError
* @return Boolean True if no handler aborted the hook
*/
public static function run( $event, $args = array() ) {
* @return Boolean True if no handler aborted the hook
*/
public static function run( $event, $args = array() ) {
@@
-148,6
+149,7
@@
class Hooks {
return true;
}
return true;
}
+ wfProfileIn( 'hook: ' . $event );
$hooks = self::getHandlers( $event );
foreach ( $hooks as $hook ) {
$hooks = self::getHandlers( $event );
foreach ( $hooks as $hook ) {
@@
-286,10
+288,12
@@
class Hooks {
);
}
} elseif ( !$retval ) {
);
}
} elseif ( !$retval ) {
+ wfProfileOut( 'hook: ' . $event );
return false;
}
}
return false;
}
}
+ wfProfileOut( 'hook: ' . $event );
return true;
}
return true;
}