Skip to content

Commit

Permalink
Merge pull request #18 from Innei/master
Browse files Browse the repository at this point in the history
修复独立页面的编辑按钮导致的 404
  • Loading branch information
Dreamer-Paul authored Sep 24, 2019
2 parents 2ab085d + 86e7339 commit 48125f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion page.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<section class="page-title">
<h2><?php $this -> title() ?></h2>
<?php if($this -> authorId == $this -> user -> uid): ?>
<a class="edit-link" href="<?php $this -> options -> adminUrl(); ?>write-post.php?cid=<?php echo $this -> cid; ?>" target="_blank">编辑</a>
<a class="edit-link" href="<?php $this -> options -> adminUrl(); ?>write-page.php?cid=<?php echo $this -> cid; ?>" target="_blank">编辑</a>
<?php endif; ?>
</section>
<article class="page-content">
Expand Down

0 comments on commit 48125f0

Please sign in to comment.