Changeset 325
- Timestamp:
- Apr 26, 2008 4:40:58 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/App.inc.php
r318 r325 662 662 // Copy the value of the specified query argument into the _carry_queries array. 663 663 $this->_carry_queries[$k] = getFormData($k, $default); 664 $this->logMsg(sprintf('Carrying query: %s => %s', $k, $this->_carry_queries[$k]), LOG_DEBUG, __FILE__, __LINE__); 664 665 } 665 666 } … … 669 670 * dropQuery() is the opposite of carryQuery(). The specified value will not appear in 670 671 * url()/ohref()/printHiddenSession() modified URLs unless explicitly written in. 671 * 672 * 672 673 * @access public 673 674 * @param mixed $query_key The key (or keys, as an array) of the query argument to remove. … … 675 676 * @since 18 Jun 2007 20:57:29 676 677 */ 677 function dropQuery($query_key, $ default=false)678 function dropQuery($query_key, $unset=false) 678 679 { 679 680 if (!is_array($query_key)) { … … 683 684 if (isset($this->_carry_queries[$k])) { 684 685 // Remove the value of the specified query argument from the _carry_queries array. 686 $this->logMsg(sprintf('Dropping carried query: %s => %s', $k, $this->_carry_queries[$k]), LOG_DEBUG, __FILE__, __LINE__); 685 687 unset($this->_carry_queries[$k]); 688 } 689 if ($unset && isset($_REQUEST[$k])) { 690 unset($_REQUEST[$k], $_GET[$k], $_POST[$k], $_COOKIE[$k]); 686 691 } 687 692 } … … 692 697 * keys and values, including optional queries. This allows mindless retention 693 698 * of query arguments across page requests. If cookies are not 694 * used, the session id will be prop ogated in the URL.699 * used, the session id will be propagated in the URL. 695 700 * 696 701 * @param string $url The initial url
Note: See TracChangeset
for help on using the changeset viewer.