integrated velocity engine for URL templates
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.wiki / src / net / sourceforge / phpeclipse / wiki / actions / mediawiki / MediaWikiConnector.java
index c9d2bda..b2e845e 100644 (file)
@@ -35,7 +35,7 @@ public class MediaWikiConnector {
    * Get the text of a wikimedia Wiki-Description
    *  
    */
-  public static String getWikiText(String wikiDescriptor, String urlStr) {
+  public static String getWikiText(String wikiname, String urlStr) {
     // examples
     // http://en.wikipedia.org/w/wiki.phtml?title=Main_Page&action=edit
     // http://en.wikibooks.org/w/wiki.phtml?title=Programming:PHP:SQL_Injection&action=edit
@@ -43,10 +43,11 @@ public class MediaWikiConnector {
     HttpMethod method = null;
     try {
       if (urlStr == null) {
-        urlStr = "http://en.wikipedia.org/w/wiki.phtml?title=" + wikiDescriptor + "&action=edit";
-      } else {
-        urlStr = urlStr + "?title=" + wikiDescriptor + "&action=edit";
-      }
+        urlStr = "http://en.wikipedia.org/w/wiki.phtml?title=" + wikiname + "&action=edit";
+      } 
+//      else {
+//        urlStr = urlStr + "?title=" + wikiname + "&action=edit";
+//      }
       URI uri = new URI(urlStr.toCharArray());
 
       String schema = uri.getScheme();