App::get_baseurl is now replaced with System::baseUrl
This commit is contained in:
parent
3c24bed412
commit
5adfeb0bd5
134 changed files with 603 additions and 624 deletions
|
@ -11,7 +11,7 @@ function notice_init(App $a) {
|
|||
$r = q("SELECT `user`.`nickname` FROM `user` LEFT JOIN `item` ON `item`.`uid` = `user`.`uid` WHERE `item`.`id` = %d", intval($id));
|
||||
if (dbm::is_result($r)) {
|
||||
$nick = $r[0]['nickname'];
|
||||
$url = App::get_baseurl() . "/display/$nick/$id";
|
||||
$url = System::baseUrl() . "/display/$nick/$id";
|
||||
goaway($url);
|
||||
} else {
|
||||
$a->error = 404;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue