summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlow012 <low012@6c8d7289-2bf4-0310-a012-ef5d649a1542>2006-11-24 02:52:38 +0000
committerlow012 <low012@6c8d7289-2bf4-0310-a012-ef5d649a1542>2006-11-24 02:52:38 +0000
commit29fa17bd406675c19b21242212e5b2d53a4a67e9 (patch)
tree2beafdce29a19342b28af91534567ee489a312c6
parentf1528672b14156d4071864b1739694bd64bccdda (diff)
*) simplified some code in wikiCode.java
*) deleted outdated text in Settings_p-html (see http://www.yacy-forum.de/viewtopic.php?p=28027) git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3005 6c8d7289-2bf4-0310-a012-ef5d649a1542
-rw-r--r--htroot/Settings_p.html2
-rw-r--r--source/de/anomic/data/wikiCode.java4
2 files changed, 2 insertions, 4 deletions
diff --git a/htroot/Settings_p.html b/htroot/Settings_p.html
index 5c4cdbb93..63508b765 100644
--- a/htroot/Settings_p.html
+++ b/htroot/Settings_p.html
@@ -23,8 +23,6 @@
<body id="Settings">
#%env/templates/header.template%#
<h2>Settings</h2>
- <p>This is the configuration page for YaCy. Access to this page should be limited to an administration person only.
- To restrict the access to this page, please set an administrator account and password <a href="#admin">below.</a></p>
<p>If you want to restore all settings to the default values,
but <strong>forgot your administration password</strong>, you must stop the proxy,
delete the file 'DATA/SETTINGS/httpProxy.conf' in the YaCy application root folder and start YaCy again.
diff --git a/source/de/anomic/data/wikiCode.java b/source/de/anomic/data/wikiCode.java
index eddbe87d2..464c05acd 100644
--- a/source/de/anomic/data/wikiCode.java
+++ b/source/de/anomic/data/wikiCode.java
@@ -724,7 +724,7 @@ public class wikiCode {
// using the wikicode [[Image:share/yacy.gif]]
// or an image DATA/HTDOCS/grafics/kaskelix.jpg with [[Image:grafics/kaskelix.jpg]]
// you are free to use other sub-paths of DATA/HTDOCS
- if (!((kl.indexOf("://"))>=0)) {
+ if (kl.indexOf("://")<1) {
kl = "http://" + yacyCore.seedDB.mySeed.getAddress().trim() + "/" + kl;
}
@@ -765,7 +765,7 @@ public class wikiCode {
// using the wikicode [share/page.html]
// or a file DATA/HTDOCS/www/page.html with [www/page.html]
// you are free to use other sub-paths of DATA/HTDOCS
- if (!((kl.indexOf("://"))>=0)) {
+ if (kl.indexOf("://")<1) {
kl = "http://" + yacyCore.seedDB.mySeed.getAddress().trim() + "/" + kl;
}
result = result.substring(0, p0) + "<a class=\"extern\" href=\"" + kl + "\">" + kv + "</a>" + result.substring(p1 + 1);