mirror of
https://github.com/danpros/htmly.git
synced 2026-04-20 20:46:26 +05:30
Cleanup
This commit is contained in:
parent
0a657741f4
commit
62b0a52254
3 changed files with 1 additions and 29 deletions
|
|
@ -4,15 +4,8 @@ if (isset($_GET['destination'])) {
|
|||
$destination = _h($_GET['destination']);
|
||||
}
|
||||
$url = $p->file;
|
||||
|
||||
$dir = substr($url, 0, strrpos($url, '/'));
|
||||
$oldurl = str_replace($dir . '/', '', $url);
|
||||
$oldmd = str_replace('.md', '', $oldurl);
|
||||
|
||||
$post = $p->url;
|
||||
|
||||
if (isset($destination)) {
|
||||
|
||||
if ($destination == 'post') {
|
||||
$back = $post;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue