Changeset 26270


Ignore:
Timestamp:
06/03/10 12:17:37 (7 years ago)
Author:
jval
Message:

The workflow can be started only once because it uses the global variables, refs #1626

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ragnaroek/midcom/midcom.core/midcom/services/multilang.php

    r26269 r26270  
    5151    function auto($auto_langs = null, $lang0_langs = null)
    5252    {
     53        static $enabled = false;
     54
     55        if ($enabled) return false;
     56
    5357        if ($auto_langs) $GLOBALS['midcom_config']['multilang_auto_langs'] = $auto_langs;
    5458        if ($lang0_langs) $GLOBALS['midcom_config']['multilang_lang0_langs'] = $lang0_langs;
     
    111115            }
    112116        }
     117
     118        $enabled = true;
     119
     120        return $enabled;
    113121    }
    114122
Note: See TracChangeset for help on using the changeset viewer.