Changeset 21490 for branches/version-2_12-dev/data/class/util/SC_Utils.php
- Timestamp:
- 2012/02/12 11:28:48 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/util/SC_Utils.php
r21481 r21490 1672 1672 */ 1673 1673 function sfGetRandomString($length = 1) { 1674 require_once dirname(__FILE__) . '/../../module/Text/Password.php';1675 1674 return Text_Password::create($length); 1676 1675 } … … 2039 2038 return json_encode($value); 2040 2039 } else { 2041 require_once dirname(__FILE__) . '/../../module/Services/JSON.php';2042 2040 GC_Utils_Ex::gfPrintLog(' *use Services_JSON::encode(). faster than using the json_encode!'); 2043 2041 $objJson = new Services_JSON(); … … 2062 2060 return json_decode($json); 2063 2061 } else { 2064 require_once dirname(__FILE__) . '/../../module/Services/JSON.php';2065 2062 GC_Utils_Ex::gfPrintLog(' *use Services_JSON::decode(). faster than using the json_decode!'); 2066 2063 $objJson = new Services_JSON();
Note: See TracChangeset
for help on using the changeset viewer.
