[Comoblog-commit] comoblog/admin post_add.php,1.6,1.7 post_edit.php,1.9,1.10
Status: Inactive
Brought to you by:
markwallis
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2005-12-15 22:10:29
|
Update of /cvsroot/comoblog/comoblog/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29266 Modified Files: post_add.php post_edit.php Log Message: 1280303 - Add support for no-subject post add/edit via the website Index: post_add.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/admin/post_add.php,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- post_add.php 7 Dec 2005 21:04:49 -0000 1.6 +++ post_add.php 15 Dec 2005 22:10:15 -0000 1.7 @@ -50,6 +50,12 @@ $post[$k] = stripslashes($v); } + if ($post['post_mail_subject'] == "") { + $title = filter_html($post['post_mail_body']); + $post['post_mail_subject'] = substr($title,0,150) ."..."; + + } + // apply post filters if (count($POST_PRE_FILTERS) > 0) { for ($filter_cnt = 0; $filter_cnt < count($POST_PRE_FILTERS); $filter_cnt++) { Index: post_edit.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/admin/post_edit.php,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- post_edit.php 14 Dec 2005 04:21:13 -0000 1.9 +++ post_edit.php 15 Dec 2005 22:10:15 -0000 1.10 @@ -103,6 +103,12 @@ $post[$k] = stripslashes($v); } + if ($post['post_mail_subject'] == "") { + $title = filter_html($post['post_mail_body']); + $post['post_mail_subject'] = substr($title,0,150) ."..."; + + } + // apply post filters if (count($POST_PRE_FILTERS) > 0) { for ($filter_cnt = 0; $filter_cnt < count($POST_PRE_FILTERS); $filter_cnt++) { |