Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
2ba0b65d
Commit
2ba0b65d
authored
Jun 03, 2010
by
Richard Mansfield
Browse files
Show more of email subject in email log
Signed-off-by:
Richard Mansfield
<
richardm@catalyst.net.nz
>
parent
50f944c3
Changes
1
Show whitespace changes
Inline
Side-by-side
htdocs/lib/user.php
View file @
2ba0b65d
...
@@ -424,7 +424,7 @@ function email_user($userto, $userfrom, $subject, $messagetext, $messagehtml='',
...
@@ -424,7 +424,7 @@ function email_user($userto, $userfrom, $subject, $messagetext, $messagehtml='',
if
(
strpos
(
$script
,
$docroot
)
===
0
)
{
if
(
strpos
(
$script
,
$docroot
)
===
0
)
{
$script
=
substr
(
$script
,
strlen
(
$docroot
));
$script
=
substr
(
$script
,
strlen
(
$docroot
));
}
}
$line
=
"
$to
<-
$mail->From
- "
.
str_shorten_text
(
$mail
->
Subject
,
5
0
);
$line
=
"
$to
<-
$mail->From
- "
.
str_shorten_text
(
$mail
->
Subject
,
20
0
);
@
error_log
(
'['
.
date
(
"Y-m-d h:i:s"
)
.
"] [
$client
] [
$script
]
$line
\n
"
,
3
,
$logfile
);
@
error_log
(
'['
.
date
(
"Y-m-d h:i:s"
)
.
"] [
$client
] [
$script
]
$line
\n
"
,
3
,
$logfile
);
}
}
...
...
Write
Preview
Supports
Markdown
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