mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-09 18:08:49 +00:00
Revert to stable version 3.5.4
This commit is contained in:
parent
38db18b624
commit
5360f08f42
355 changed files with 21449 additions and 4957 deletions
|
@ -9,8 +9,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
use Friendica\Core\Config;
|
||||
|
||||
function rendertime_install() {
|
||||
register_hook('page_end', 'addon/rendertime/rendertime.php', 'rendertime_page_end');
|
||||
}
|
||||
|
@ -28,7 +26,7 @@ function rendertime_page_end(&$a, &$o) {
|
|||
|
||||
$duration = microtime(true)-$a->performance["start"];
|
||||
|
||||
$ignored_modules = ["fbrowser"];
|
||||
$ignored_modules = array("fbrowser");
|
||||
$ignored = in_array($a->module, $ignored_modules);
|
||||
|
||||
if (is_site_admin() && ($_GET["mode"] != "minimal") && !$a->is_mobile && !$a->is_tablet && !$ignored) {
|
||||
|
@ -47,7 +45,7 @@ function rendertime_page_end(&$a, &$o) {
|
|||
//round($a->performance["plugin"], 3)
|
||||
)."</div>";
|
||||
|
||||
if (Config::get("rendertime", "callstack")) {
|
||||
if (get_config("rendertime", "callstack")) {
|
||||
$o .= "<pre>";
|
||||
$o .= "\nDatabase Read:\n";
|
||||
foreach ($a->callstack["database"] AS $func => $time) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue