Commit 74205536 authored by Tobias Zimmermann's avatar Tobias Zimmermann
Browse files

Issue #1121730 by Dave Reid, cord1, Starminder, Dru-P: Errors in clock.tokens.inc

parent fdb41d6b
Loading
Loading
Loading
Loading
+2 −1
Changes for clock.tokens.inc: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ function clock_token_info() {
 */
function clock_tokens($type, $tokens, $data, $options) {
  $replacements = array();
  if ($type = 'clock') {
  if ($type == 'clock') {
    $clock = $data['clock'];
    foreach ($tokens as $name => $original) {
      switch ($name) {
@@ -58,6 +58,7 @@ function clock_tokens($type, $tokens, $data, $options) {
          break;
        case 'date-type':
          $replacements[$original] = $clock->date_type;
          break;
        case 'cid':
          $replacements[$original] = $clock->cid;
          break;