]> git.mxchange.org Git - friendica.git/blobdiff - include/text.php
Move is_a_date_arg to DateTimeFormat::isYearMonth
[friendica.git] / include / text.php
index 775931c6ff82c1578989cf4b05602ca513c3819a..89c07000f7557501ec4d43498a3795369041c1e0 100644 (file)
@@ -72,22 +72,3 @@ function get_cats_and_terms($item)
 
        return [$categories, $folders];
 }
-
-/// @TODO Rewrite this
-function is_a_date_arg($s) {
-       $i = intval($s);
-
-       if ($i > 1900) {
-               $y = date('Y');
-
-               if ($i <= $y + 1 && strpos($s, '-') == 4) {
-                       $m = intval(substr($s, 5));
-
-                       if ($m > 0 && $m <= 12) {
-                               return true;
-                       }
-               }
-       }
-
-       return false;
-}