Changeset 862 for trunk/include/functions.inc.php
- Timestamp:
- Sep 14, 2005, 11:57:05 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions.inc.php
r849 r862 103 103 } 104 104 105 // array_remove removes a value from the given array if the value existed in106 // this array.107 function array_remove( $array, $value )108 {109 $output = array();110 foreach ( $array as $v ) {111 if ( $v != $value ) array_push( $output, $v );112 }113 return $output;114 }115 116 105 // The function get_moment returns a float value coresponding to the number 117 106 // of seconds since the unix epoch (1st January 1970) and the microseconds … … 434 423 } 435 424 436 function pwg_write_debug()437 {438 global $debug;439 440 $fp = @fopen( './log/debug.log', 'a+' );441 fwrite( $fp, "\n\n" );442 fwrite( $fp, $debug );443 fclose( $fp );444 }445 446 425 function pwg_query($query) 447 426 { … … 735 714 global $lang, $conf; 736 715 737 if ($conf['debug_l10n'] )716 if ($conf['debug_l10n'] and !isset($lang[$key])) 738 717 { 739 718 echo '[l10n] language key "'.$key.'" is not defined<br />';
Note: See TracChangeset
for help on using the changeset viewer.