git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
head: include canonical location in og:url
[minimedit.git]
/
article.inc.php
diff --git
a/article.inc.php
b/article.inc.php
index 53102bac4065b11ec7630897329e131561ce551d..dd3d5b2996d777fafe929c593dd666b5c97a5033 100644
(file)
--- a/
article.inc.php
+++ b/
article.inc.php
@@
-22,7
+22,7
@@
class ArchiveArticle
function __construct($path)
{
$this->page = preg_replace('{^\.(?:/|$)}', '', $path);
function __construct($path)
{
$this->page = preg_replace('{^\.(?:/|$)}', '', $path);
- $this->link = preg_replace('{(?:
/
index)?\.html$}', '', $this->page);
+ $this->link = preg_replace('{(?:
(?:/|^)
index)?\.html$}', '', $this->page);
$this->raw($this->page);
}
$this->raw($this->page);
}