File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ protected function generatePage()
82
82
'filename ' => $ this ->file ->getName (),
83
83
'language ' => $ this ->language ,
84
84
'path ' => $ this ->file ->getPath (),
85
- 'relative_path ' => $ this ->file ->getRelativePath (),
85
+ 'relative_path ' => $ this ->file ->getPath () ? $ this -> file -> getRelativePath () : null ,
86
86
'modified_time ' => $ this ->file ->getPath () ? filemtime ($ this ->file ->getPath ()) : null ,
87
87
'markdown ' => $ this ->content ,
88
88
'request ' => $ config ->getRequest (),
Original file line number Diff line number Diff line change 10
10
<?php } ?>
11
11
<?php
12
12
$ edit_on = $ config ->getHTML ()->getEditOn ();
13
- if ($ edit_on ) { ?>
13
+ if ($ edit_on && $ page [ ' relative_path ' ] ) { ?>
14
14
<span class="EditOn">
15
15
<a href="<?= $ edit_on ['basepath ' ] ?> /<?= $ page ['relative_path ' ] ?> " target="_blank">
16
16
<?= str_replace (":name: " , $ edit_on ['name ' ], $ this ->translate ("Edit_on " )) ?>
You can’t perform that action at this time.
0 commit comments