Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-forum
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-forum
Commits
b76b7eb3
Commit
b76b7eb3
authored
Mar 24, 2006
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fixed alerts for forums
- Fixed bug in im_send_alert - Cleaned up code in forum/www/new-2.tc
parent
87fba90e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
new-2.tcl
www/new-2.tcl
+11
-3
No files found.
www/new-2.tcl
View file @
b76b7eb3
...
@@ -546,9 +546,17 @@ db_foreach update_stakeholders $stakeholder_sql {
...
@@ -546,9 +546,17 @@ db_foreach update_stakeholders $stakeholder_sql {
ns_log Notice
"intranet-forum/new-2: Sending alerts: user_id=
$stakeholder
_id, importance=
$importance
, receive_updates=
$receive
_updates"
ns_log Notice
"intranet-forum/new-2: Sending alerts: user_id=
$stakeholder
_id, importance=
$importance
, receive_updates=
$receive
_updates"
if
{
$importance
== 0
}
{
continue
}
switch
$receive
_updates
{
if
{[
string
compare
$receive
_updates
"none"
]}
{
continue
}
none
{
if
{
$importance
< 2 &&
[
string
compare
$receive
_updates
"major"
]}
{
continue
}
continue
}
major
{
if
{
$importance
< 2
}
{
continue
}
}
all
{
# Nothing - receive the message
}
}
ns_log Notice
"intranet-forum/new-2: Sending out alert: '
$subject
'"
ns_log Notice
"intranet-forum/new-2: Sending out alert: '
$subject
'"
im_send_alert
$stakeholder
_id
"hourly"
$subject
"
$msg
_url
\n\n
$message
"
im_send_alert
$stakeholder
_id
"hourly"
$subject
"
$msg
_url
\n\n
$message
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment