aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/Utils.php
diff options
context:
space:
mode:
authorArthur <arthur@hoa.ro>2016-01-06 19:57:42 +0100
committerArthur <arthur@hoa.ro>2016-01-06 19:57:42 +0100
commit88c15abb2a2b24f05ca926c0ddbdec18a407e47d (patch)
tree90f783c69dc51866dc01dc34e740023bd1e0c4ec /application/Utils.php
parenta327d891b3a2762bb6aabba3a6572b077f6003c0 (diff)
parenteefb636cea7acef9ddfd02a90749820f5fafc9f6 (diff)
downloadShaarli-88c15abb2a2b24f05ca926c0ddbdec18a407e47d.tar.gz
Shaarli-88c15abb2a2b24f05ca926c0ddbdec18a407e47d.tar.zst
Shaarli-88c15abb2a2b24f05ca926c0ddbdec18a407e47d.zip
Merge pull request #424 from ArthurHoaro/search
Link filter refactoring
Diffstat (limited to 'application/Utils.php')
-rw-r--r--application/Utils.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/application/Utils.php b/application/Utils.php
index f84f70e4..aeaef9ff 100644
--- a/application/Utils.php
+++ b/application/Utils.php
@@ -72,12 +72,14 @@ function sanitizeLink(&$link)
72 72
73/** 73/**
74 * Checks if a string represents a valid date 74 * Checks if a string represents a valid date
75
76 * @param string $format The expected DateTime format of the string
77 * @param string $string A string-formatted date
78 *
79 * @return bool whether the string is a valid date
75 * 80 *
76 * @param string a string-formatted date 81 * @see http://php.net/manual/en/class.datetime.php
77 * @param format the expected DateTime format of the string 82 * @see http://php.net/manual/en/datetime.createfromformat.php
78 * @return whether the string is a valid date
79 * @see http://php.net/manual/en/class.datetime.php
80 * @see http://php.net/manual/en/datetime.createfromformat.php
81 */ 83 */
82function checkDateFormat($format, $string) 84function checkDateFormat($format, $string)
83{ 85{