Move common function
This commit is contained in:
parent
a09916737e
commit
6a41240c42
|
@ -129,15 +129,6 @@ function textarea($name, $value, $rows = 10, $cols = 80) {
|
||||||
echo "</textarea>";
|
echo "</textarea>";
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Format time difference
|
|
||||||
* @param string output of microtime()
|
|
||||||
* @param string output of microtime()
|
|
||||||
* @return string HTML code
|
|
||||||
*/
|
|
||||||
function format_time($start, $end) {
|
|
||||||
return lang('%.3f s', max(0, array_sum(explode(" ", $end)) - array_sum(explode(" ", $start))));
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Print table columns for type edit
|
/** Print table columns for type edit
|
||||||
* @param string
|
* @param string
|
||||||
* @param array
|
* @param array
|
||||||
|
|
|
@ -565,6 +565,15 @@ function queries_redirect($location, $message, $redirect) {
|
||||||
return query_redirect(queries(), $location, $message, $redirect, false, !$redirect);
|
return query_redirect(queries(), $location, $message, $redirect, false, !$redirect);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Format time difference
|
||||||
|
* @param string output of microtime()
|
||||||
|
* @param string output of microtime()
|
||||||
|
* @return string HTML code
|
||||||
|
*/
|
||||||
|
function format_time($start, $end) {
|
||||||
|
return lang('%.3f s', max(0, array_sum(explode(" ", $end)) - array_sum(explode(" ", $start))));
|
||||||
|
}
|
||||||
|
|
||||||
/** Remove parameter from query string
|
/** Remove parameter from query string
|
||||||
* @param string
|
* @param string
|
||||||
* @return string
|
* @return string
|
||||||
|
|
Loading…
Reference in a new issue