mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-22 23:56:29 +00:00
Don't add 'index.php' to url, REQUEST_URI has it
See http://php.net/manual/en/reserved.variables.server.php
This commit is contained in:
parent
aa8e0a27e2
commit
bf1be2bf49
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ function url(){
|
||||||
<li><a href="index.php">home</a></li>
|
<li><a href="index.php">home</a></li>
|
||||||
<li><a href="#">favorites</a></li>
|
<li><a href="#">favorites</a></li>
|
||||||
<li><a href="#">archive</a></li>
|
<li><a href="#">archive</a></li>
|
||||||
<li><a href="javascript:(function(){var%20url%20=%20location.href;var%20title%20=%20document.title%20||%20url;window.open('<?php echo url()?>index.php?action=add&url='%20+%20encodeURIComponent(url),'_self');})();">poche it !</a></li>
|
<li><a href="javascript:(function(){var%20url%20=%20location.href;var%20title%20=%20document.title%20||%20url;window.open('<?php echo url()?>?action=add&url='%20+%20encodeURIComponent(url),'_self');})();">poche it !</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<?php
|
<?php
|
||||||
$query = $db_handle->prepare("SELECT * FROM entries WHERE read=?");
|
$query = $db_handle->prepare("SELECT * FROM entries WHERE read=?");
|
||||||
|
|
Loading…
Reference in a new issue