|
From: Eloi G. <ada...@us...> - 2008-11-23 06:06:23
|
Update of /cvsroot/phpwebsite-comm/modules/article In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv11604 Modified Files: index_admin.php Log Message: Moved status message creation to after the actual operation was performed Index: index_admin.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/article/index_admin.php,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** index_admin.php 22 Nov 2008 06:41:57 -0000 1.26 --- index_admin.php 23 Nov 2008 06:06:13 -0000 1.27 *************** *** 252,257 **** $article->approved = 0; $article->draft = 1; ! $message = sprintf(dgettext('article', 'Article %s ("%s") has been saved as an unapproved rough draft'), $article->id, $article->title); ! if (AMupdate($article, $message)==true) { AMexit($article, $panel, $title, $content); } --- 252,257 ---- $article->approved = 0; $article->draft = 1; ! if (AMupdate($article, $message)==true) { ! $message = sprintf(dgettext('article', 'Article %s ("%s") has been saved as an unapproved rough draft'), $article->id, $article->title); AMexit($article, $panel, $title, $content); } *************** *** 269,274 **** $article->approved = 1; $article->draft = 0; ! $message = sprintf(dgettext('article', 'Article %s ("%s") has been saved, approved and published'), $article->id, $article->title); ! if (AMupdate($article, $message)==true) { AMexit($article, $panel, $title, $content); } --- 269,274 ---- $article->approved = 1; $article->draft = 0; ! if (AMupdate($article, $message)==true) { ! $message = sprintf(dgettext('article', 'Article %s ("%s") has been saved, approved and published'), $article->id, $article->title); AMexit($article, $panel, $title, $content); } *************** *** 290,295 **** $article->approved = 0; $article->draft = 0; ! $message = sprintf(dgettext('article', 'Article %s ("%s") is being held for approval.<br />You however, will still be able to see and edit it.'), $article->id, $article->title); ! if (AMupdate($article, $message)==true) { AMexit($article, $panel, $title, $content); } --- 290,295 ---- $article->approved = 0; $article->draft = 0; ! if (AMupdate($article, $message)==true) { ! $message = sprintf(dgettext('article', 'Article %s ("%s") is being held for approval.<br />You however, will still be able to see and edit it.'), $article->id, $article->title); AMexit($article, $panel, $title, $content); } |