Index: trunk/extensions/RecordAdmin/RecordAdmin_body.php |
— | — | @@ -446,7 +446,7 @@ |
447 | 447 | |
448 | 448 | # If a record and field name are specified, return the field value |
449 | 449 | if ( isset( $type ) && isset( $record ) && isset( $field ) ) { |
450 | | - $title = Title::newFromText( $record ); |
| 450 | + if ( is_object( $record ) ) $title = $record; else $title = Title::newFromText( $record ); |
451 | 451 | if ( is_object( $title ) ) { |
452 | 452 | $article = new Article( $title ); |
453 | 453 | $text = $article->getContent(); |