summaryrefslogtreecommitdiff
path: root/src/templates/form_fields.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/templates/form_fields.php')
-rw-r--r--src/templates/form_fields.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/templates/form_fields.php b/src/templates/form_fields.php
index 0bfe076..224dbf4 100644
--- a/src/templates/form_fields.php
+++ b/src/templates/form_fields.php
@@ -1,12 +1,12 @@
-<label>URL<input type="text" name="url" maxlength="512" value="<?php echo htmlspecialchars($old->get('url', $bookmark->url)); ?>" autofocus></label>
+<label>URL<input type="text" name="url" maxlength="512" value="<?= htmlspecialchars($old->get('url', $bookmark->url)); ?>" autofocus></label>
<?php if ($errors->has('url')) { ?>
- <p><?php echo htmlentities(implode(', ', $errors->get('url'))); ?></p>
+ <p><?= htmlentities(implode(', ', $errors->get('url'))); ?></p>
<?php } ?>
-<label>Title<input type="text" name="title" maxlength="256" value="<?php echo htmlspecialchars($old->get('title', $bookmark->title)); ?>"></label>
+<label>Title<input type="text" name="title" maxlength="256" value="<?= htmlspecialchars($old->get('title', $bookmark->title)); ?>"></label>
<?php if ($errors->has('title')) { ?>
- <p><?php echo htmlentities(implode(', ', $errors->get('title'))); ?></p>
+ <p><?= htmlentities(implode(', ', $errors->get('title'))); ?></p>
<?php } ?>
-<label>Tag<input type="text" name="tag" maxlength="8" value="<?php echo htmlspecialchars($old->get('tag', $bookmark->tag)); ?>"></label>
+<label>Tag<input type="text" name="tag" maxlength="8" value="<?= htmlspecialchars($old->get('tag', $bookmark->tag)); ?>"></label>
<?php if ($errors->has('tag')) { ?>
- <p><?php echo htmlentities(implode(', ', $errors->get('tag'))); ?></p>
+ <p><?= htmlentities(implode(', ', $errors->get('tag'))); ?></p>
<?php } ?>