https://www.mediawiki.org/wiki/Special:Code/MediaWiki/113406

Revision: 113406
Author:   awjrichards
Date:     2012-03-08 21:22:45 +0000 (Thu, 08 Mar 2012)
Log Message:
-----------
MFT r112732

Modified Paths:
--------------
    branches/wmf/1.19wmf1/includes/WebRequest.php

Property Changed:
----------------
    branches/wmf/1.19wmf1/includes/WebRequest.php

Modified: branches/wmf/1.19wmf1/includes/WebRequest.php
===================================================================
--- branches/wmf/1.19wmf1/includes/WebRequest.php       2012-03-08 21:22:15 UTC 
(rev 113405)
+++ branches/wmf/1.19wmf1/includes/WebRequest.php       2012-03-08 21:22:45 UTC 
(rev 113406)
@@ -379,7 +379,24 @@
                return $ret;
        }
 
+       
        /**
+        * Unset an arbitrary value from our get/post data.
+        *
+        * @param $key String: key name to use
+        * @return Mixed: old value if one was present, null otherwise
+        */
+       public function unsetVal( $key ) {
+               if ( !isset( $this->data[$key] ) ) {
+                       $ret = null;
+               } else {
+                       $ret = $this->data[$key];
+                       unset( $this->data[$key] );
+               }
+               return $ret;
+       }
+
+       /**
         * Fetch an array from the input or return $default if it's not set.
         * If source was scalar, will return an array with a single element.
         * If no source and no default, returns NULL.


Property changes on: branches/wmf/1.19wmf1/includes/WebRequest.php
___________________________________________________________________
Added: svn:mergeinfo
   + /branches/JSTesting/includes/WebRequest.php:100352-107913
/branches/REL1_15/phase3/includes/WebRequest.php:51646
/branches/new-installer/phase3/includes/WebRequest.php:43664-66004
/branches/sqlite/includes/WebRequest.php:58211-58321
/branches/wmf/1.18wmf1/includes/WebRequest.php:97508,111667
/branches/wmf-deployment/includes/WebRequest.php:53381
/trunk/phase3/includes/WebRequest.php:111029,111034,111067,111085,111128,111144,111251,111397,111427,111571,111574,111597,111658,111673,111695,111697,111750,111827,111965-111967,112021,112045-112046,112049,112061-112063,112065-112066,112070-112071,112079,112128,112132-112133,112152,112184,112259,112290,112347,112374,112378,112381,112383,112397,112408,112474,112526,112534,112563,112700,112732,112839-112840,112843,112855,112866,112951,112995,113099,113169,113312


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to