From 09af6ea18db73111c81829753df4b12d34dea42e Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 24 Aug 2005 23:48:28 +0000 Subject: [PATCH] r370: Added temporary registration system --- includes/class_language.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/includes/class_language.php b/includes/class_language.php index e56a472..0f96fbc 100644 --- a/includes/class_language.php +++ b/includes/class_language.php @@ -154,6 +154,22 @@ class lang return $phrase; } + /** + * Registers a phrase with the temporary text system + * + * @param string Phrase text + * + * @return string Phrase text + */ + function r($string) + { + global $bugsys; + + $bugsys->db->query("REPLACE INTO phraseregistry (md5, phrasetext) VALUES ('" . md5($string) . "', '" . $bugsys->sanitize($string) . "')"); + + return $string; + } + /** * Fetches a variable from the vars array * -- 2.43.5