From 932341f822f7c0205c6dd531e17aa7a9f03949e0 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 12 Mar 2006 23:55:32 +0000 Subject: [PATCH] Adding string errors for the built-in verify_*() functions --- api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api.php b/api.php index 69cc335..8717d86 100644 --- a/api.php +++ b/api.php @@ -599,7 +599,7 @@ class API { if ($this->values["$field"] == 0) { - return false; + return sprintf($this->registry->modules['localize']->string('The field %1$s cannot be zero'), $field); } return true; @@ -615,7 +615,7 @@ class API { if (empty($this->values["$field"])) { - return false; + return sprintf($this->registry->modules['localize']->string('The field %1$s cannot be empty'), $field); } return true; -- 2.22.5