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
84a2d3cd
Commit
84a2d3cd
authored
Jan 16, 2007
by
Richard Mansfield
Browse files
Only attempt to reset the blogpost body field when moving temp files to
my files
parent
fc2f43ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/blog/saveblogpost.json.php
View file @
84a2d3cd
...
...
@@ -118,6 +118,7 @@ if (!empty($uploadartefact)) {
$body
=
preg_replace
(
$regexps
,
$subs
,
$body
);
}
if
(
$body
!=
$originalbody
)
{
$postobj
=
new
ArtefactTypeBlogPost
(
$blogpost
,
null
);
$postobj
->
set
(
'description'
,
$body
);
$postobj
->
commit
();
}
...
...
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