Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
framadate
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nounous
framadate
Commits
0e0becb5
Commit
0e0becb5
authored
9 years ago
by
Antonin
Browse files
Options
Downloads
Patches
Plain Diff
Replacing :: by NotificationService::
parent
166927f8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
adminstuds.php
+2
-2
2 additions, 2 deletions
adminstuds.php
studs.php
+3
-3
3 additions, 3 deletions
studs.php
with
5 additions
and
5 deletions
adminstuds.php
+
2
−
2
View file @
0e0becb5
...
...
@@ -139,7 +139,7 @@ if (isset($_POST['update_poll_info'])) {
// Update poll in database
if
(
$updated
&&
$adminPollService
->
updatePoll
(
$poll
))
{
$message
=
new
Message
(
'success'
,
__
(
'adminstuds'
,
'Poll saved'
));
$notificationService
->
sendUpdateNotification
(
$poll
,
$n
otificationService
::
UPDATE_POLL
);
$notificationService
->
sendUpdateNotification
(
$poll
,
N
otificationService
::
UPDATE_POLL
);
}
else
{
$message
=
new
Message
(
'danger'
,
__
(
'Error'
,
'Failed to save poll'
));
$poll
=
$pollService
->
findById
(
$poll_id
);
...
...
@@ -304,7 +304,7 @@ if (isset($_POST['delete_poll'])) {
if
(
isset
(
$_POST
[
'confirm_delete_poll'
]))
{
if
(
$adminPollService
->
deleteEntirePoll
(
$poll_id
))
{
$message
=
new
Message
(
'success'
,
__
(
'adminstuds'
,
'Poll fully deleted'
));
$notificationService
->
sendUpdateNotification
(
$poll
,
$n
otificationService
::
DELETED_POLL
);
$notificationService
->
sendUpdateNotification
(
$poll
,
N
otificationService
::
DELETED_POLL
);
}
else
{
$message
=
new
Message
(
'danger'
,
__
(
'Error'
,
'Failed to delete the poll'
));
}
...
...
This diff is collapsed.
Click to expand it.
studs.php
+
3
−
3
View file @
0e0becb5
...
...
@@ -96,7 +96,7 @@ if (!empty($_POST['save'])) { // Save edition of an old vote
}
else
{
$message
=
new
Message
(
'success'
,
__
(
'studs'
,
'Update vote succeeded'
));
}
$notificationService
->
sendUpdateNotification
(
$poll
,
$n
otificationService
::
UPDATE_VOTE
,
$name
);
$notificationService
->
sendUpdateNotification
(
$poll
,
N
otificationService
::
UPDATE_VOTE
,
$name
);
}
else
{
$message
=
new
Message
(
'danger'
,
__
(
'Error'
,
'Update vote failed'
));
}
...
...
@@ -122,7 +122,7 @@ if (!empty($_POST['save'])) { // Save edition of an old vote
}
else
{
$message
=
new
Message
(
'success'
,
__
(
'studs'
,
'Adding the vote succeeded'
));
}
$notificationService
->
sendUpdateNotification
(
$poll
,
$n
otificationService
::
ADD_VOTE
,
$name
);
$notificationService
->
sendUpdateNotification
(
$poll
,
N
otificationService
::
ADD_VOTE
,
$name
);
}
else
{
$message
=
new
Message
(
'danger'
,
__
(
'Error'
,
'Adding vote failed'
));
}
...
...
@@ -146,7 +146,7 @@ if (isset($_POST['add_comment'])) {
$result
=
$pollService
->
addComment
(
$poll_id
,
$name
,
$comment
);
if
(
$result
)
{
$message
=
new
Message
(
'success'
,
__
(
'Comments'
,
'Comment added'
));
$notificationService
->
sendUpdateNotification
(
$poll
,
$n
otificationService
::
ADD_COMMENT
,
$name
);
$notificationService
->
sendUpdateNotification
(
$poll
,
N
otificationService
::
ADD_COMMENT
,
$name
);
}
else
{
$message
=
new
Message
(
'danger'
,
__
(
'Error'
,
'Comment failed'
));
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment