Changeset 2027


Ignore:
Timestamp:
May 28, 2007, 10:13:30 AM (17 years ago)
Author:
plg
Message:

Cosmetic: make get_comment_post_key function more readable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_comment.inc.php

    r1908 r2027  
    3131{
    3232  global $conf;
     33 
    3334  $time = time();
    34   return $time.':'.hash_hmac('md5', $time.':'.$image_id, $conf['secret_key'] );
     35
     36  return sprintf(
     37    '%s:%s',
     38    $time,
     39    hash_hmac(
     40      'md5',
     41      $time.':'.$image_id,
     42      $conf['secret_key']
     43      )
     44    );
    3545}
    3646
Note: See TracChangeset for help on using the changeset viewer.