[geeklog-cvs] geeklog-1.3/public_html/admin story.php,1.139,1.140
dhaun at iowaoutdoors.org
dhaun at iowaoutdoors.org
Tue Dec 14 17:35:31 EST 2004
Update of /var/cvs/geeklog-1.3/public_html/admin
In directory www:/tmp/cvs-serv1215
Modified Files:
story.php
Log Message:
Fixed editing plain-text stories with uploaded images ("clickable links" were messed-up)
Index: story.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/admin/story.php,v
retrieving revision 1.139
retrieving revision 1.140
diff -C2 -d -r1.139 -r1.140
*** story.php 11 Dec 2004 15:01:57 -0000 1.139
--- story.php 14 Dec 2004 22:35:29 -0000 1.140
***************
*** 443,453 ****
$story_templates->set_var('featured_options', COM_optionList($_TABLES['featurecodes'],'code,name',$A['featured']));
$story_templates->set_var('frontpage_options', COM_optionList($_TABLES['frontpagecodes'],'code,name',$A['frontpage']));
- list($newintro, $newbody) = replace_images($A['sid'], stripslashes($A['introtext']), stripslashes($A['bodytext']));
if ($A['postmode'] == 'plaintext') {
! $newintro = COM_undoClickableLinks ($newintro);
! $newbody = COM_undoClickableLinks ($newbody);
}
$story_templates->set_var('lang_introtext', $LANG24[16]);
if ($A['postmode'] == 'plaintext') {
--- 443,455 ----
$story_templates->set_var('featured_options', COM_optionList($_TABLES['featurecodes'],'code,name',$A['featured']));
$story_templates->set_var('frontpage_options', COM_optionList($_TABLES['frontpagecodes'],'code,name',$A['frontpage']));
if ($A['postmode'] == 'plaintext') {
! $A['introtext'] = COM_undoClickableLinks ($A['introtext']);
! $A['bodytext'] = COM_undoClickableLinks ($A['bodytext']);
}
+ list($newintro, $newbody) = replace_images ($A['sid'],
+ stripslashes ($A['introtext']), stripslashes ($A['bodytext']));
+
$story_templates->set_var('lang_introtext', $LANG24[16]);
if ($A['postmode'] == 'plaintext') {
More information about the geeklog-cvs
mailing list