From: Ævar Arnfjörð Bjarmason Date: Fri, 9 Sep 2005 19:26:56 +0000 (+0000) Subject: * Documentation X-Git-Tag: 1.6.0~1688 X-Git-Url: https://git.cyclocoop.org/%27.%24link.%27?a=commitdiff_plain;h=d0f2e190e337412f71b60f4d51453057c81ed2c8;p=lhc%2Fweb%2Fwiklou.git * Documentation * Whitespace * Added the setting of $updateRecentChanges to the constructor --- diff --git a/includes/LogPage.php b/includes/LogPage.php index 02270e33ec..5e35b50c5e 100644 --- a/includes/LogPage.php +++ b/includes/LogPage.php @@ -32,17 +32,21 @@ * @package MediaWiki */ class LogPage { - /* private */ var $type, $action, $comment, $params, $target; - var $updateRecentChanges = true; + /* @access private */ + var $type, $action, $comment, $params, $target; + /* @acess public */ + var $updateRecentChanges; /** * Constructor * * @param string $type One of '', 'block', 'protect', 'rights', 'delete', * 'upload', 'move' + * @param bool $rc Whether to update recent changes as well as the logging table */ - function LogPage( $type ) { + function LogPage( $type, $rc = true ) { $this->type = $type; + $this->updateRecentChanges = $rc; } function saveContent() { @@ -89,7 +93,7 @@ class LogPage { */ function validTypes() { static $types = array( '', 'block', 'protect', 'rights', 'delete', 'upload', 'move' ); - wfRunHooks( 'LogPageValidTypes', array( &$types) ); + wfRunHooks( 'LogPageValidTypes', array( &$types ) ); return $types; } @@ -129,7 +133,7 @@ class LogPage { 'upload' => 'uploadlogpage', 'move' => 'movelogpage' ); - wfRunHooks( 'LogPageLogName', array( &$typeText) ); + wfRunHooks( 'LogPageLogName', array( &$typeText ) ); return str_replace( '_', ' ', wfMsg( $typeText[$type] ) ); }