mirror of
https://github.com/friendica/friendica
synced 2025-04-23 06:30:11 +00:00
Rename classes
- Repository/Model Notification => Notify - Factory/Object Notification => Notification
This commit is contained in:
parent
b85511b00d
commit
0840938dff
12 changed files with 45 additions and 45 deletions
|
@ -24,7 +24,7 @@ class Notification extends BaseModule
|
|||
// @TODO: Replace with parameter from router
|
||||
if (DI::args()->get(1) === 'mark' && DI::args()->get(2) === 'all') {
|
||||
try {
|
||||
$success = DI::notification()->setAllSeen();
|
||||
$success = DI::notify()->setAllSeen();
|
||||
}catch (\Exception $e) {
|
||||
$success = false;
|
||||
}
|
||||
|
@ -48,7 +48,7 @@ class Notification extends BaseModule
|
|||
// @TODO: Replace with parameter from router
|
||||
if (DI::args()->getArgc() > 2 && DI::args()->get(1) === 'view' && intval(DI::args()->get(2))) {
|
||||
try {
|
||||
$notification = DI::notification()->getByID(DI::args()->get(2));
|
||||
$notification = DI::notify()->getByID(DI::args()->get(2));
|
||||
$notification->setSeen();
|
||||
|
||||
if (!empty($notification->link)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue