r63113 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r63112‎ | r63113 | r63114 >
Date:09:29, 1 March 2010
Author:nad
Status:deferred
Tags:
Comment:
allow record arg of getFieldValue to be a Title object
Modified paths:
  • /trunk/extensions/RecordAdmin/RecordAdmin_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/RecordAdmin/RecordAdmin_body.php
@@ -446,7 +446,7 @@
447447
448448 # If a record and field name are specified, return the field value
449449 if ( isset( $type ) && isset( $record ) && isset( $field ) ) {
450 - $title = Title::newFromText( $record );
 450+ if ( is_object( $record ) ) $title = $record; else $title = Title::newFromText( $record );
451451 if ( is_object( $title ) ) {
452452 $article = new Article( $title );
453453 $text = $article->getContent();

Status & tagging log