shithub: werc

Download patch

ref: 35347850cd3c79f0b23775e4518cb8957d7dd896
parent: b4148bc258fc901a6f3d00ca7326d10c2d9ad2cc
author: uriel <uriel@engel.se.cat-v.org>
date: Wed Mar 4 04:05:40 EST 2009

Only display Edit button when no other handler_body_main has been set (ie., if file really doesn't exist).

--- a/apps/dirdir/app.rc
+++ b/apps/dirdir/app.rc
@@ -30,7 +30,7 @@
             mkdir -p `{basename -d $local_path}
             save_page
         }
-        if not
+        if not if(~ $"handler_body_main  '')
             ll_add handlers_bar_left tpl_handler \
                 apps/dirdir/sidebar_controls.tpl