From 592be1ab8ca3daa0bdc9600445b44140a041a653 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Fri, 26 Jun 2009 11:17:12 +0000 Subject: [PATCH] Core change for r52446, allow querying params like id --- includes/Xml.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/includes/Xml.php b/includes/Xml.php index 0358507e0b..5359f32362 100644 --- a/includes/Xml.php +++ b/includes/Xml.php @@ -751,6 +751,14 @@ class XmlSelect { $this->attributes[$name] = $value; } + public function getAttribute( $name ) { + if ( isset($this->attributes[$name]) ) { + return $this->attributes[$name]; + } else { + return null; + } + } + public function addOption( $name, $value = false ) { // Stab stab stab $value = ($value !== false) ? $value : $name; -- 2.20.1