Skip to content

Commit

Permalink
improving condition for the edit link
Browse files Browse the repository at this point in the history
  • Loading branch information
tracend committed Nov 15, 2013
1 parent 15f5817 commit 6538ebb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/admin/top-bar.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div id="admin-topbar">
<h3><a href="http://kisscms.com/" title="Made with love...">KISSCMS</a></h3>
<ul>
<?php if( isset( $id ) ){ ?>
<?php if( (isset( $id ) && !isset( $status )) || (isset( $status ) && $status !== "edit") ){ ?>
<li><a href="<?=url("admin/edit/$id")?>">Edit page</a></li>
<?php } elseif( isset( $path ) && isset( $status ) && $status == "new" ) { ?>
<li><a href="<?=url("admin/create/".$path)?>">Create page</a></li>
Expand Down

0 comments on commit 6538ebb

Please sign in to comment.