Skip to content

Commit

Permalink
Merge pull request #30 from nodiscc/master
Browse files Browse the repository at this point in the history
add link: in case of empty URL (self-post), prepend "Note: " to the title
  • Loading branch information
nodiscc committed Oct 21, 2014
2 parents c4a329e + 27646ca commit 736feea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -1587,7 +1587,11 @@ function renderPage()
}
}
}
if ($url=='') $url='?'.smallHash($linkdate); // In case of empty URL, this is just a text (with a link that point to itself)
if ($url=='') // In case of empty URL, this is just a text (with a link that points to itself)
{
$url='?'.smallHash($linkdate);
$title='Note: ';
}
$link = array('linkdate'=>$linkdate,'title'=>$title,'url'=>$url,'description'=>$description,'tags'=>$tags,'private'=>$private);
}

Expand Down

0 comments on commit 736feea

Please sign in to comment.