From: Michael M Slusarz Date: Wed, 11 Aug 2010 01:58:56 +0000 (-0600) Subject: There is no longer a length parameter X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=faf956c4c0e0003648c05f5c2269f4a31a2767c1;p=horde.git There is no longer a length parameter --- diff --git a/framework/Support/lib/Horde/Support/Guid.php b/framework/Support/lib/Horde/Support/Guid.php index da6ef6b51..07d187bb1 100644 --- a/framework/Support/lib/Horde/Support/Guid.php +++ b/framework/Support/lib/Horde/Support/Guid.php @@ -39,8 +39,6 @@ class Horde_Support_Guid * 'prefix' - (string) A prefix to add between the date string and the * random string. * DEFAULT: NONE - * 'rlength' - (integer) The length of the random string. - * DEFAULT: 16 * 'server' - (string) The server name. * DEFAULT: $_SERVER['SERVER_NAME'] (or 'localhost') * @@ -58,8 +56,6 @@ class Horde_Support_Guid * 'prefix' - (string) A prefix to add between the date string and the * random string. * DEFAULT: NONE - * 'rlength' - (integer) The length of the random string. - * DEFAULT: 16 * 'server' - (string) The server name. * DEFAULT: $_SERVER['SERVER_NAME'] (or 'localhost') * @@ -69,7 +65,7 @@ class Horde_Support_Guid $this->_guid = date('YmdHis') . '.' . (isset($opts['prefix']) ? $opts['prefix'] . '.' : '') - . strval(new Horde_Support_Randomid(isset($opts['rlength']) ? $opts['rlength'] : 16)) + . strval(new Horde_Support_Randomid()) . '@' . (isset($opts['server']) ? $opts['server'] : (isset($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : 'localhost')); }