Solved: 6 Years, 11 Months, 3 Weeks ago Call to undefined function format_time_duration() and db_mysqli.php
#3
Solved: 6 Years, 11 Months, 3 Weeks ago
Hi, in inc/functions.php I have that line:

/**
 * Format a decimal number in to microseconds, milliseconds, or seconds.
 *
 * @param int The time in microseconds
 * @return string The friendly time duration
 */
function format_time_duration($time)
{
	global $lang;

etc

/**
 * Prints a debug information page
 */
function debug_page()
{
	global $db, $debug, $templates, $templatelist, $mybb, $maintimer, $globaltime, $ptimer, $parsetime, $lang, $cache;

	$totaltime = format_time_duration($maintimer->totaltime);
	$phptime = $maintimer->totaltime - $db->query_time;
	$query_time = $db->query_time;
	$globaltime = format_time_duration($globaltime);

	$percentphp = number_format((($phptime/$maintimer->totaltime)*100), 2);
	$percentsql = number_format((($query_time/$maintimer->totaltime)*100), 2);

	$phptime = format_time_duration($maintimer->totaltime - $db->query_time);
	$query_time = format_time_duration($db->query_time);

	$call_time = format_time_duration($cache->call_time);

etc

I installed MySql, can to be my wrong setting of MySql?
Reply


Messages In This Thread
RE: Call to undefined function format_time_duration() and db_mysqli.php - by niere8 - 2014-10-11, 06:32 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)