Changeset 2089 for trunk/include
- Timestamp:
- Sep 12, 2007, 6:01:54 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions.inc.php
r2086 r2089 430 430 431 431 $do_log = trigger_event('pwg_log_allowed', $do_log, $image_id, $image_type); 432 432 433 433 if (!$do_log) 434 434 { … … 460 460 list($curyear, $curmonth, $curday) = explode('-', $curdate); 461 461 list($curhour) = explode(':', $curtime); 462 462 463 463 $query = ' 464 464 INSERT INTO '.HISTORY_TABLE.' … … 713 713 * 714 714 * @param array $rejects 715 * @param boolean $escape - if true escape & to & (for html) 715 716 * @returns string 716 717 */ 717 function get_query_string_diff($rejects = array())718 function get_query_string_diff($rejects=array(), $escape=true) 718 719 { 719 720 $query_string = ''; … … 727 728 if (!in_array($key, $rejects)) 728 729 { 729 $query_string.= $is_first ? '?' : '&';730 $query_string.= $is_first ? '?' : ($escape ? '&' : '&' ); 730 731 $is_first = false; 731 732 $query_string.= $key.'='.$value; … … 840 841 $thumbnail_title = ''; 841 842 } 842 843 843 844 if (!empty($element_info['filesize'])) 844 845 { … … 1076 1077 * 1077 1078 * @param element/array $key_args: element or array of l10n_args elements 1078 * @param $sep: if $key_args is array, 1079 * @param $sep: if $key_args is array, 1079 1080 * separator is used when translated l10n_args elements are concated 1080 1081 * @return string
Note: See TracChangeset
for help on using the changeset viewer.