* Reset $wgActionPaths during parser test; corrects some false failures
in the automated test report.
* (bug 4875) Define a div containing the shared image description
+* (bug 4860) Expose Title->userCan() as Hooks
=== Caveats ===
wfProfileIn( $fname );
global $wgUser;
+
+ $result = true;
+ if ( !wfRunHooks( 'userCan', array( &$this, &$wgUser, $action, &$result ) ) ) {
+ wfProfileOut( $fname );
+ return $result;
+ }
+
if( NS_SPECIAL == $this->mNamespace ) {
wfProfileOut( $fname );
return false;
function userCanRead() {
global $wgUser;
+ $result = true;
+ if ( !wfRunHooks( 'userCan', array( &$this, &$wgUser, "read", &$result ) ) ) {
+ return $result;
+ }
+
if( $wgUser->isAllowed('read') ) {
return true;
} else {