Skip to content

Commit

Permalink
fixed edit_link()
Browse files Browse the repository at this point in the history
  • Loading branch information
voitto committed Mar 26, 2009
1 parent 96197eb commit 1aeecf6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/omb/plugins/wp.php
Original file line number Diff line number Diff line change
Expand Up @@ -1639,16 +1639,16 @@ function get_edit_post_link( &$post ) {
));
}

function edit_post_link( &$post ) {
function edit_post_link( $post ) {
global $the_post,$request;
if (!isset($the_post->id))
return;
if ($the_post->profile_id == get_profile_id() || get_profile_id() == 1)
return "<a href=\"".$request->url_for(array(
'resource' => 'posts',
'id' => $the_post->id,
'action' => 'edit'
))."\">edit</a>&nbsp;|&nbsp;<a href=\"".$request->url_for(array(
echo "<a href=\"".$request->url_for(array(
'resource' => 'posts',
'id' => $the_post->id,
'action' => 'edit'
))."\">edit</a>&nbsp;|&nbsp;<a href=\"".$request->url_for(array(
'resource' => 'posts',
'id' => $the_post->id,
'action' => 'remove'
Expand Down

0 comments on commit 1aeecf6

Please sign in to comment.