Changeset 54459 in spip-zone


Ignore:
Timestamp:
Nov 14, 2011, 8:17:51 PM (8 years ago)
Author:
cedric@…
Message:

oups, erreur dans l'upgrade

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _core_/plugins/medias/medias_administrations.php

    r54450 r54459  
    134134        $res = sql_select("DISTINCT extension","spip_documents","media=".sql_quote('?'));
    135135        while($row = sql_fetch($res)){
    136                 $media = sql_getfetsel('media_defaut','spip_types_documents','extension='.sql_quote($row['extension']));
     136                // attention ici c'est encore le champ media, car on le renomme juste apres
     137                $media = sql_getfetsel('media','spip_types_documents','extension='.sql_quote($row['extension']));
    137138                sql_updateq('spip_documents',array('media'=>$media),"media=".sql_quote('?').' AND extension='.sql_quote($row['extension']));
    138139                if (time() >= _TIME_OUT)
Note: See TracChangeset for help on using the changeset viewer.