aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--_test/tests/inc/parser/renderer_xhtml.test.php2
-rw-r--r--_test/tests/inc/styleutils_cssstyleini.test.php4
-rw-r--r--inc/init.php2
3 files changed, 4 insertions, 4 deletions
diff --git a/_test/tests/inc/parser/renderer_xhtml.test.php b/_test/tests/inc/parser/renderer_xhtml.test.php
index 44fe48854..5d0d50164 100644
--- a/_test/tests/inc/parser/renderer_xhtml.test.php
+++ b/_test/tests/inc/parser/renderer_xhtml.test.php
@@ -269,7 +269,7 @@ class renderer_xhtml_test extends DokuWikiTest {
$this->assertSame('0', $header);
$this->R->internallink($id);
- $expected = '<a href="/./doku.php?id='.$id.'" class="wikilink1" title="'.$id.'" data-wiki-id="blanktest">0</a>';
+ $expected = '<a href="/doku.php?id='.$id.'" class="wikilink1" title="'.$id.'" data-wiki-id="blanktest">0</a>';
$this->assertEquals($expected, trim($this->R->doc));
}
}
diff --git a/_test/tests/inc/styleutils_cssstyleini.test.php b/_test/tests/inc/styleutils_cssstyleini.test.php
index 72528556e..248b14440 100644
--- a/_test/tests/inc/styleutils_cssstyleini.test.php
+++ b/_test/tests/inc/styleutils_cssstyleini.test.php
@@ -10,8 +10,8 @@ class styleutils_cssstyleini_test extends DokuWikiTest {
array (
'screen' =>
array (
- DOKU_CONF . 'tpl/dokuwiki/css/_tests.less' => '/./',
- DOKU_INC . 'lib/tpl/dokuwiki/css/content.less' => '/./lib/tpl/dokuwiki/',
+ DOKU_CONF . 'tpl/dokuwiki/css/_tests.less' => '/',
+ DOKU_INC . 'lib/tpl/dokuwiki/css/content.less' => '/lib/tpl/dokuwiki/',
),
),
'replacements' =>
diff --git a/inc/init.php b/inc/init.php
index 7300a0ebe..499b445a4 100644
--- a/inc/init.php
+++ b/inc/init.php
@@ -475,7 +475,7 @@ function getBaseURL($abs = null)
);
$dir = dirname('/' . $dir);
} else {
- $dir = '.'; //probably wrong
+ $dir = ''; //probably wrong, but we assume it's in the root
}
$dir = str_replace('\\', '/', $dir); // bugfix for weird WIN behaviour