mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 08:58:49 +00:00
Issue 3873
Replace deprecated functions with new syntax
This commit is contained in:
parent
72474dc2f6
commit
48dcbc6f3f
61 changed files with 1036 additions and 920 deletions
|
@ -9,6 +9,8 @@
|
|||
*
|
||||
*/
|
||||
|
||||
use Friendica\Core\Config;
|
||||
|
||||
function rendertime_install() {
|
||||
register_hook('page_end', 'addon/rendertime/rendertime.php', 'rendertime_page_end');
|
||||
}
|
||||
|
@ -45,7 +47,7 @@ function rendertime_page_end(&$a, &$o) {
|
|||
//round($a->performance["plugin"], 3)
|
||||
)."</div>";
|
||||
|
||||
if (get_config("rendertime", "callstack")) {
|
||||
if (Config::get("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