Ignore:
Timestamp:
Feb 11, 2006, 8:36:09 PM (18 years ago)
Author:
rvelices
Message:

remake Remote Site/Synchro - bug on commentable + use l10n instead of get_lang

File:
1 edited

Legend:

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

    r1029 r1033  
    431431function pwg_query($query)
    432432{
    433   global $conf,$page,$debug;
     433  global $conf,$page,$debug,$t2;
    434434 
    435435  $start = get_moment();
     
    456456    $output.= "\n".'(total SQL time  : ';
    457457    $output.= number_format($page['queries_time'], 3, '.', ' ').' s)';
     458    $output.= "\n".'(total time      : ';
     459    $output.= number_format( ($time+$start-$t2), 3, '.', ' ').' s)';
    458460    $output.= "</pre>\n";
    459461   
     
    466468function pwg_debug( $string )
    467469{
    468   global $debug,$t2,$count_queries;
     470  global $debug,$t2,$page;
    469471
    470472  $now = explode( ' ', microtime() );
     
    474476  $debug .= '<p>';
    475477  $debug.= '['.$time.', ';
    476   $debug.= $count_queries.' queries] : '.$string;
     478  $debug.= $page['count_queries'].' queries] : '.$string;
    477479  $debug.= "</p>\n";
    478480}
     
    975977
    976978/**
    977  * returns the $str in current language if possible or $str enclosed
    978  * in special chars
    979  */
    980 function get_lang($str)
    981 {
    982   global $lang;
    983   if ( isset($lang[$str]) )
    984   {
    985     return $lang[$str];
    986   }
    987   return '@@'.$str.'@@';
    988 }
    989 
    990 /**
    991979 * which upgrades are available ?
    992980 *
Note: See TracChangeset for help on using the changeset viewer.