From 7574f0e241e207c87327b202c8d2ac817d88e676 Mon Sep 17 00:00:00 2001 From: Extreme Team Date: Tue, 27 Mar 2012 11:40:26 +0100 Subject: [PATCH] MP/ES: Use Router.reverse for proper url when deployed in tomcat --- .gitignore | 5 +++++ app/press/Plugin.java | 6 ++++-- commands.pyc | Bin 1055 -> 0 bytes 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 .gitignore delete mode 100644 commands.pyc diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b70fdee --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +commands.pyc +.classpath +.project +.settings +eclipse diff --git a/app/press/Plugin.java b/app/press/Plugin.java index 7719065..3166c69 100644 --- a/app/press/Plugin.java +++ b/app/press/Plugin.java @@ -4,6 +4,7 @@ import java.util.HashMap; import java.util.Map; +import play.Play; import play.PlayPlugin; import play.mvc.Router; import press.io.FileIO; @@ -240,7 +241,7 @@ private static String getCompressedUrl(String action, String requestKey) { * tags within the HTML. */ private static String getScriptTag(String src) { - return "\n"; } @@ -250,7 +251,8 @@ private static String getScriptTag(String src) { * within the HTML. */ private static String getLinkTag(String src) { - return "" + return "" + (press.PluginConfig.htmlCompatible ? "" : "") + "\n"; } } diff --git a/commands.pyc b/commands.pyc deleted file mode 100644 index 13759ef257bcb4aab4b0941ebf6eef1ce91d805b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1055 zcmcIi!A`=!sQ zfEwYV#5OZKv%53<-pstd7xR1jZ`BUWKY?o*#gtGffEH>2JpnBN%7Pc%u|U~u*q|IX z98ei(cv%cdGpOQ38)FI!>)=KYhY>$Prxr>T#ayA90`&QbX9165;aWhhwQy~A?S<>G z>%bHtW#HC=$OWOYa9#-o8h}tXFm;fU?nI+eJ5;HSb~}z!ht{NLcteMipD+ytJ?&Nq zvPae6i#?rsgq`UPC|=T;BrcLtOUmn^%#