Ignore:
Timestamp:
Sep 14, 2005, 11:57:05 PM (19 years ago)
Author:
plg
Message:
  • improvement: long localized messages are in HTML files instead of $lang array. This is the case of admin/help and about pages.
  • deletion: of unused functions (ts_to_mysqldt, is_image, TN_exists, check_date_format, date_convert, get_category_directories, get_used_metadata_list, array_remove, pwg_write_debug, get_group_restrictions, get_all_group_restrictions, is_group_allowed, style_select, deprecated_getAttribute).
  • new: many new contextual help pages to replace descriptions previously included in pages.
  • modification: reorganisation of language files. Deletion of unused language keys, alphabetical sort. No faq.lang.php anymore (replaced by help.html). Only done for en_UK.iso-8859-1.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions.inc.php

    r849 r862  
    103103}
    104104
    105 // array_remove removes a value from the given array if the value existed in
    106 // 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 
    116105// The function get_moment returns a float value coresponding to the number
    117106// of seconds since the unix epoch (1st January 1970) and the microseconds
     
    434423}
    435424
    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 
    446425function pwg_query($query)
    447426{
     
    735714  global $lang, $conf;
    736715
    737   if ($conf['debug_l10n'])
     716  if ($conf['debug_l10n'] and !isset($lang[$key]))
    738717  {
    739718    echo '[l10n] language key "'.$key.'" is not defined<br />';
Note: See TracChangeset for help on using the changeset viewer.