X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FRecentChange.php;h=97a5e1b59f7846a0fd4054ceeaffa1885aa53f32;hb=9a5c36d3c1382a501c5e7a1a5537a31a8cebecbd;hp=81e3b128ecfc6fb54c7404d05d17b1a698a1bc87;hpb=4c74490bb81c891fc450f21899ed462af652e978;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/RecentChange.php b/includes/RecentChange.php index 81e3b128ec..97a5e1b59f 100644 --- a/includes/RecentChange.php +++ b/includes/RecentChange.php @@ -2,6 +2,7 @@ /** * Utility class for creating new RC entries + * * mAttribs: * rc_id id of the row in the recentchanges table * rc_timestamp time the entry was made @@ -65,7 +66,7 @@ class RecentChange { /** * Obtain the recent change with a given rc_id value * - * @param $rcid rc_id value to retrieve + * @param $rcid Int rc_id value to retrieve * @return RecentChange */ public static function newFromId( $rcid ) { @@ -114,6 +115,10 @@ class RecentChange { $this->mExtra = $extra; } + /** + * + * @return Title + */ public function &getTitle() { if( $this->mTitle === false ) { $this->mTitle = Title::makeTitle( $this->mAttribs['rc_namespace'], $this->mAttribs['rc_title'] ); @@ -251,7 +256,7 @@ class RecentChange { * * @param $change Mixed: RecentChange or corresponding rc_id * @param $auto Boolean: for automatic patrol - * @return See doMarkPatrolled(), or null if $change is not an existing rc_id + * @return Array See doMarkPatrolled(), or null if $change is not an existing rc_id */ public static function markPatrolled( $change, $auto = false ) { $change = $change instanceof RecentChange @@ -578,7 +583,7 @@ class RecentChange { /** * Get an attribute value * - * @param $name Attribute name + * @param $name String Attribute name * @return mixed */ public function getAttribute( $name ) { @@ -669,7 +674,7 @@ class RecentChange { $flag .= ($rc_new ? "N" : "") . ($rc_minor ? "M" : "") . ($rc_bot ? "B" : ""); } - if ( $wgRC2UDPInterwikiPrefix === true ) { + if ( $wgRC2UDPInterwikiPrefix === true && $wgLocalInterwiki !== false ) { $prefix = $wgLocalInterwiki; } elseif ( $wgRC2UDPInterwikiPrefix ) { $prefix = $wgRC2UDPInterwikiPrefix;