diff options
author | Michael Tänzer <neo@nhng.de> | 2014-03-20 04:25:50 +0100 |
---|---|---|
committer | Michael Tänzer <neo@nhng.de> | 2014-03-20 04:25:50 +0100 |
commit | 8872049b1d43ce98f528b9360e778bddd989067b (patch) | |
tree | 3730edd55156750fcef82d8d02323b73c3c9a39b /pages/account/10.php | |
parent | 8df925a3427bb53432bd7cff8344e69e0c6c8526 (diff) | |
download | cacert-devel-8872049b1d43ce98f528b9360e778bddd989067b.tar.gz cacert-devel-8872049b1d43ce98f528b9360e778bddd989067b.tar.xz cacert-devel-8872049b1d43ce98f528b9360e778bddd989067b.zip |
bug 807: PHP doesn't allow arrays in constants, let's use a class instead
Signed-off-by: Michael Tänzer <neo@nhng.de>
Diffstat (limited to 'pages/account/10.php')
-rw-r--r-- | pages/account/10.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pages/account/10.php b/pages/account/10.php index 82e4c87..317fc0e 100644 --- a/pages/account/10.php +++ b/pages/account/10.php @@ -61,10 +61,10 @@ <p class="attach_ul"><?=_("Hash algorithm used when signing the certificate:")?></p> <ul class="no_indent"> <? -foreach (HASH_ALGORITHMS as $algorithm => $display_string) { +foreach (HashAlgorithms::display_strings() as $algorithm => $display_string) { ?> <li> - <input type="radio" id="hash_alg_<?=$algorithm?>" name="hash_alg" value="<?=$algorithm?>" <?=(DEFAULT_HASH_ALGORITHM === $algorithm)?'checked="checked"':''?> /> + <input type="radio" id="hash_alg_<?=$algorithm?>" name="hash_alg" value="<?=$algorithm?>" <?=(HashAlgorithms::$default === $algorithm)?'checked="checked"':''?> /> <label for="hash_alg_<?=$algorithm?>"><?=$display_string?></label> </li> <? |