Replace deprecated $a->page with DI::page()
This commit is contained in:
parent
07269ebb69
commit
2ca621a92a
16 changed files with 33 additions and 31 deletions
|
@ -64,7 +64,7 @@ function dwpost_settings(App $a, &$s)
|
|||
}
|
||||
|
||||
/* Add our stylesheet to the page so we can make our settings look nice */
|
||||
$a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="' . DI::baseUrl()->get() . '/addon/dwpost/dwpost.css' . '" media="all" />' . "\r\n";
|
||||
DI::page()['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="' . DI::baseUrl()->get() . '/addon/dwpost/dwpost.css' . '" media="all" />' . "\r\n";
|
||||
|
||||
/* Get the current state of our config variables */
|
||||
$enabled = PConfig::get(local_user(), 'dwpost', 'post');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue