Changeset 26429


Ignore:
Timestamp:
06/21/10 18:48:16 (7 years ago)
Author:
jval
Message:

Cosmetic changes, refs #1626

File:
1 edited

Legend:

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

    r26428 r26429  
    582582
    583583                    $object_in_lang = $object;
    584 
    585584                    $langs = array($language->code);
    586 
    587585                    $delete = false;
     586
    588587                    if (!$object_langs[$language->code])
    589588                    {
     
    612611                        && $language->code == ''
    613612                        && !$delete
    614                         && $object_in_lang0 = self::get_object_in_lang($object, '', true))
     613                        && $object_in_lang = self::get_object_in_lang($object, '', true))
    615614                    {
    616615                        foreach ($object_langs as $lang => $translated)
     
    618617                            if ($lang == $language->code) continue;
    619618
    620                             $object_in_lang = self::get_object_in_lang($object, $lang, true);
    621 
    622                             if (   $object_in_lang
    623                                 && self::are_objects_equal($object_in_lang, $object_in_lang0))
     619                            $object_in_langx = self::get_object_in_lang($object, $lang, true);
     620
     621                            if (   $object_in_langx
     622                                && self::are_objects_equal($object_in_langx, $object_in_lang))
    624623                            {
    625624                                $delete = true;
     
    627626                            }
    628627                        }
    629                         $object_in_lang = $object_in_lang0;
    630628                    }
    631629
Note: See TracChangeset for help on using the changeset viewer.