Changeset 26378


Ignore:
Timestamp:
06/16/10 17:39:22 (7 years ago)
Author:
jval
Message:

Don't process same languages twice, refs #1626

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ragnaroek/midcom/midcom.core/midcom/exec/multilangs.php

    r26371 r26378  
    4141
    4242$real_lang = midcom_services_multilang::get_lang();
     43$synced = array();
    4344while ($lang = array_pop($langs))
    4445{
     46    if (isset($synced[$lang])) continue;
    4547    midgard_connection::set_lang($lang);
    4648    midcom_services_multilang::tree($topic);
     49    $synced[$lang] = true;
    4750}
    4851midgard_connection::set_lang($real_lang);
Note: See TracChangeset for help on using the changeset viewer.