mirror of
https://github.com/friendica/friendica
synced 2025-04-19 09:10:12 +00:00
Log the execution time
This commit is contained in:
parent
6eb70bea16
commit
4016a576d5
27 changed files with 67 additions and 6 deletions
|
@ -43,6 +43,7 @@ class Oembed extends BaseModule
|
|||
if (DI::args()->getArgv()[1] == 'b2h') {
|
||||
$url = ["", trim(hex2bin($_REQUEST['url']))];
|
||||
echo Content\OEmbed::replaceCallback($url);
|
||||
DI::page()->logRuntime();
|
||||
exit();
|
||||
}
|
||||
|
||||
|
@ -50,6 +51,7 @@ class Oembed extends BaseModule
|
|||
if (DI::args()->getArgv()[1] == 'h2b') {
|
||||
$text = trim(hex2bin($_REQUEST['text']));
|
||||
echo Content\OEmbed::HTML2BBCode($text);
|
||||
DI::page()->logRuntime();
|
||||
exit();
|
||||
}
|
||||
|
||||
|
@ -68,6 +70,7 @@ class Oembed extends BaseModule
|
|||
echo $j->html;
|
||||
echo '</body></html>';
|
||||
}
|
||||
DI::page()->logRuntime();
|
||||
exit();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue