[dw-free] Revamp /update
[commit: http://hg.dwscoalition.org/dw-free/rev/573d5fc0fe61]
http://bugs.dwscoalition.org/show_bug.cgi?id=2524
If we're posting (say via quickupdate), then let the entry be posted
normally instead of redirecting to entry/new!
Patch by
fu.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=2524
If we're posting (say via quickupdate), then let the entry be posted
normally instead of redirecting to entry/new!
Patch by
Files modified:
- htdocs/update.bml
--------------------------------------------------------------------------------
diff -r 394132d58cd6 -r 573d5fc0fe61 htdocs/update.bml
--- a/htdocs/update.bml Mon Dec 05 12:11:00 2011 +0800
+++ b/htdocs/update.bml Mon Dec 05 12:13:23 2011 +0800
@@ -50,8 +50,8 @@
# Errors that are unlikely to change between starting
# to compose an entry and submitting it.
if ($remote) {
- BML::redirect( LJ::create_url( "/entry/new", cur_args => \%GET, keep_args => 1 ) )
- if LJ::BetaFeatures->user_in_beta( $remote => "updatepage" );
+ return BML::redirect( LJ::create_url( "/entry/new", cur_args => \%GET, keep_args => 1 ) )
+ if ! LJ::did_post() && LJ::BetaFeatures->user_in_beta( $remote => "updatepage" );
if ($remote->identity) {
$$title = $ML{'Sorry'};
--------------------------------------------------------------------------------
