1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-04 12:17:42 +02:00

Site Url without trailing slashes

This commit is contained in:
Awilum
2014-01-04 23:52:28 +02:00
parent cd40c09496
commit aa3d785b97

View File

@@ -59,7 +59,7 @@
$_parent = (trim($page['parent']) == '') ? '' : $page['parent']; $_parent = (trim($page['parent']) == '') ? '' : $page['parent'];
$parent = (trim($page['parent']) == '') ? '' : $page['parent'].'/'; $parent = (trim($page['parent']) == '') ? '' : $page['parent'].'/';
echo (trim($page['parent']) == '') ? '' : ' '; echo (trim($page['parent']) == '') ? '' : ' ';
echo $dash.Html::anchor(Html::toText($page['title']), $site_url.$parent.$page['slug'], array('target' => '_blank', 'rel' => 'children_'.$_parent)); echo $dash.Html::anchor(Html::toText($page['title']), $site_url.'/'.$parent.$page['slug'], array('target' => '_blank', 'rel' => 'children_'.$_parent));
?> ?>
</td> </td>
<td class="hidden-phone"> <td class="hidden-phone">
@@ -116,5 +116,5 @@
</table> </table>
<form> <form>
<input type="hidden" name="url" value="<?php echo Option::get('siteurl'); ?>admin/index.php?id=pages"> <input type="hidden" name="url" value="<?php echo Option::get('siteurl'); ?>/admin/index.php?id=pages">
</form> </form>