r52448 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r52447‎ | r52448 | r52449 >
Date:11:17, 26 June 2009
Author:nikerabbit
Status:ok
Tags:
Comment:
Core change for r52446, allow querying params like id
Modified paths:
  • /trunk/phase3/includes/Xml.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Xml.php
@@ -751,6 +751,14 @@
752752 $this->attributes[$name] = $value;
753753 }
754754
 755+ public function getAttribute( $name ) {
 756+ if ( isset($this->attributes[$name]) ) {
 757+ return $this->attributes[$name];
 758+ } else {
 759+ return null;
 760+ }
 761+ }
 762+
755763 public function addOption( $name, $value = false ) {
756764 // Stab stab stab
757765 $value = ($value !== false) ? $value : $name;

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r52446Add nice language and group selectors. Thanks to Splarka who helped with Java...nikerabbit10:57, 26 June 2009

Status & tagging log