журнал (shhh) wrote in changelog,
журнал
shhh
changelog

[livejournal] r23358: LJSV-1026: Either remove ability or reco...

Committer: nnikulochkina
LJSV-1026: Either remove ability or record in userlog entry deletions done by selecting all text and hitting 'delete'
U   trunk/htdocs/editjournal.bml
Modified: trunk/htdocs/editjournal.bml
===================================================================
--- trunk/htdocs/editjournal.bml	2012-11-26 09:00:35 UTC (rev 23357)
+++ trunk/htdocs/editjournal.bml	2012-11-26 10:10:07 UTC (rev 23358)
@@ -382,6 +382,10 @@
                 # Delete
                 $req{'event'} = '' if $POST{'action:delete'} || $POST{'action:deletespam'};
 
+                unless ($req{'event'} || $POST{'action:delete'} || $POST{'action:deletespam'}) {
+                    return "<?h1 $ML{'Error'} h1?><?p $ML{'/update.bml.error.noentry'} p?>";
+                }
+
                 # mark as spam, if need be
                 if ( $POST{'action:deletespam'} && $entry_obj->is_delayed ) {
                       LJ::mark_entry_as_spam($usejournal_u, $itemid);

Tags: bml, livejournal, nikulochkina, nnikulochkina
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments