Skip to content
Extraits de code Groupes Projets
Valider 4d0d0a1a rédigé par kent1's avatar kent1
Parcourir les fichiers

Restauration correcte des types mime des fichiers Ogg sur les branches 2.1 et...

Restauration correcte des types mime des fichiers Ogg sur les branches 2.1 et 2.2 (http://trac.rezo.net/trac/spip/ticket/1941)

Ajout des types de fichiers : f4a/f4b/f4p/f4v/mpc (http://en.wikipedia.org/wiki/Flv#File_formats) sur les branches 2.1 et 2.2

Report du commit oublié : 14272 (http://trac.rezo.net/trac/spip/changeset/14272) sur la branche 2.2

Upgrade de la base en version 15676 sur les branches 2.1 et 2.2

Rend homogène (cosmétique) les espaces dans les arrays des documents
parent ddf77d26
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -18,9 +18,9 @@ global $tables_images, $tables_sequences, $tables_documents, $tables_mime, $mime ...@@ -18,9 +18,9 @@ global $tables_images, $tables_sequences, $tables_documents, $tables_mime, $mime
$tables_images = array( $tables_images = array(
// Images reconnues par PHP // Images reconnues par PHP
'jpg' => 'JPEG', 'jpg' => 'JPEG',
'png' => 'PNG', 'png' => 'PNG',
'gif' =>'GIF', 'gif' => 'GIF',
// Autres images (peuvent utiliser le tag <img>) // Autres images (peuvent utiliser le tag <img>)
'bmp' => 'BMP', 'bmp' => 'BMP',
...@@ -30,159 +30,179 @@ $tables_images = array( ...@@ -30,159 +30,179 @@ $tables_images = array(
// Multimedia (peuvent utiliser le tag <embed>) // Multimedia (peuvent utiliser le tag <embed>)
$tables_sequences = array( $tables_sequences = array(
'aiff' => 'AIFF', 'aiff' => 'AIFF',
'anx' => 'Annodex', 'anx' => 'Annodex',
'axa' => 'Annodex Audio', 'axa' => 'Annodex Audio',
'axv' => 'Annodex Video', 'axv' => 'Annodex Video',
'asf' => 'Windows Media', 'asf' => 'Windows Media',
'avi' => 'AVI', 'avi' => 'AVI',
'flac' => 'Free Lossless Audio Codec', 'dv' => 'Digital Video',
'flv' => 'Flash Video', 'f4a' => 'Audio for Adobe Flash Player',
'mid' => 'Midi', 'f4b' => 'Audio Book for Adobe Flash Player',
'mng' => 'MNG', 'f4p' => 'Protected Video for Adobe Flash Player',
'mka' => 'Matroska Audio', 'f4v' => 'Video for Adobe Flash Player',
'mkv' => 'Matroska Video', 'flac' => 'Free Lossless Audio Codec',
'mov' => 'QuickTime', 'flv' => 'Flash Video',
'mp3' => 'MP3', 'm4v' => 'MPEG4 Video',
'mp4' => 'MPEG4', 'm4a' => 'MPEG4 Audio',
'mpg' => 'MPEG', 'm4b' => 'MPEG4 Audio',
'oga' => 'Ogg Audio', 'm4p' => 'MPEG4 Audio',
'ogg' => 'Ogg Vorbis', 'mid' => 'Midi',
'ogv' => 'Ogg Video', 'mng' => 'MNG',
'ogx' => 'Ogg Multiplex', 'mka' => 'Matroska Audio',
'qt' => 'QuickTime', 'mkv' => 'Matroska Video',
'ra' => 'RealAudio', 'mov' => 'QuickTime',
'ram' => 'RealAudio', 'mp3' => 'MP3',
'rm' => 'RealAudio', 'mp4' => 'MPEG4',
'spx' => 'Ogg Speex', 'mpc' => 'Musepack',
'svg' => 'Scalable Vector Graphics', 'mpg' => 'MPEG',
'swf' => 'Flash', 'oga' => 'Ogg Audio',
'wav' => 'WAV', 'ogg' => 'Ogg Vorbis',
'wmv' => 'Windows Media', 'ogv' => 'Ogg Video',
'3gp' => '3rd Generation Partnership Project' 'ogx' => 'Ogg Multiplex',
); 'qt' => 'QuickTime',
'ra' => 'RealAudio',
'ram' => 'RealAudio',
'rm' => 'RealAudio',
'spx' => 'Ogg Speex',
'svg' => 'Scalable Vector Graphics',
'swf' => 'Flash',
'wav' => 'WAV',
'wmv' => 'Windows Media',
'3gp' => '3rd Generation Partnership Project'
);
// Documents varies // Documents varies
$tables_documents = array( $tables_documents = array(
'abw' => 'Abiword', 'abw' => 'Abiword',
'ai' => 'Adobe Illustrator', 'ai' => 'Adobe Illustrator',
'bz2' => 'BZip', 'bz2' => 'BZip',
'bin' => 'Binary Data', 'bin' => 'Binary Data',
'blend' => 'Blender', 'blend' => 'Blender',
'c' => 'C source', 'c' => 'C source',
'cls' => 'LaTeX Class', 'cls' => 'LaTeX Class',
'css' => 'Cascading Style Sheet', 'css' => 'Cascading Style Sheet',
'csv' => 'Comma Separated Values', 'csv' => 'Comma Separated Values',
'deb' => 'Debian', 'deb' => 'Debian',
'doc' => 'Word', 'doc' => 'Word',
'djvu' => 'DjVu', 'djvu' => 'DjVu',
'dvi' => 'LaTeX DVI', 'dvi' => 'LaTeX DVI',
'eps' => 'PostScript', 'eps' => 'PostScript',
'gz' => 'GZ', 'gz' => 'GZ',
'h' => 'C header', 'h' => 'C header',
'html' => 'HTML', 'html' => 'HTML',
'kml' => 'Keyhole Markup Language', 'kml' => 'Keyhole Markup Language',
'kmz' => 'Google Earth Placemark File', 'kmz' => 'Google Earth Placemark File',
'pas' => 'Pascal', 'm4u' => 'MPEG4 playliste',
'pdf' => 'PDF', 'pas' => 'Pascal',
'pgn' => 'Portable Game Notation', 'pdf' => 'PDF',
'ppt' => 'PowerPoint', 'pgn' => 'Portable Game Notation',
'ps' => 'PostScript', 'ppt' => 'PowerPoint',
'psd' => 'Photoshop', 'ps' => 'PostScript',
'rpm' => 'RedHat/Mandrake/SuSE', 'psd' => 'Photoshop',
'rtf' => 'RTF', 'rpm' => 'RedHat/Mandrake/SuSE',
'sdd' => 'StarOffice', 'rtf' => 'RTF',
'sdw' => 'StarOffice', 'sdd' => 'StarOffice',
'sit' => 'Stuffit', 'sdw' => 'StarOffice',
'sty' => 'LaTeX Style Sheet', 'sit' => 'Stuffit',
'sxc' => 'OpenOffice.org Calc', 'sty' => 'LaTeX Style Sheet',
'sxi' => 'OpenOffice.org Impress', 'sxc' => 'OpenOffice.org Calc',
'sxw' => 'OpenOffice.org', 'sxi' => 'OpenOffice.org Impress',
'tex' => 'LaTeX', 'sxw' => 'OpenOffice.org',
'tgz' => 'TGZ', 'tex' => 'LaTeX',
'torrent' => 'BitTorrent', 'tgz' => 'TGZ',
'ttf' => 'TTF Font', 'torrent' => 'BitTorrent',
'txt' => 'texte', 'ttf' => 'TTF Font',
'xcf' => 'GIMP multi-layer', 'txt' => 'texte',
'xspf' => 'XSPF', 'xcf' => 'GIMP multi-layer',
'xls' => 'Excel', 'xspf' => 'XSPF',
'xml' => 'XML', 'xls' => 'Excel',
'zip' => 'Zip', 'xml' => 'XML',
'zip' => 'Zip',
// open document format // open document format
'odt' => 'opendocument text', 'odt' => 'opendocument text',
'ods' => 'opendocument spreadsheet', 'ods' => 'opendocument spreadsheet',
'odp' => 'opendocument presentation', 'odp' => 'opendocument presentation',
'odg' => 'opendocument graphics', 'odg' => 'opendocument graphics',
'odc' => 'opendocument chart', 'odc' => 'opendocument chart',
'odf' => 'opendocument formula', 'odf' => 'opendocument formula',
'odb' => 'opendocument database', 'odb' => 'opendocument database',
'odi' => 'opendocument image', 'odi' => 'opendocument image',
'odm' => 'opendocument text-master', 'odm' => 'opendocument text-master',
'ott' => 'opendocument text-template', 'ott' => 'opendocument text-template',
'ots' => 'opendocument spreadsheet-template', 'ots' => 'opendocument spreadsheet-template',
'otp' => 'opendocument presentation-template', 'otp' => 'opendocument presentation-template',
'otg' => 'opendocument graphics-template', 'otg' => 'opendocument graphics-template',
// Open XML File Formats // Open XML File Formats
'docm' => 'Word', 'docm' => 'Word',
'docx' => 'Word', 'docx' => 'Word',
'dotm' => 'Word template', 'dotm' => 'Word template',
'dotx' => 'Word template', 'dotx' => 'Word template',
'potm' => 'Powerpoint template', 'potm' => 'Powerpoint template',
'potx' => 'Powerpoint template', 'potx' => 'Powerpoint template',
'ppam' => 'Powerpoint addin', 'ppam' => 'Powerpoint addin',
'ppsm' => 'Powerpoint slideshow', 'ppsm' => 'Powerpoint slideshow',
'ppsx' => 'Powerpoint slideshow', 'ppsx' => 'Powerpoint slideshow',
'pptm' => 'Powerpoint', 'pptm' => 'Powerpoint',
'pptx' => 'Powerpoint', 'pptx' => 'Powerpoint',
'xlam' => 'Excel', 'xlam' => 'Excel',
'xlsb' => 'Excel binary', 'xlsb' => 'Excel binary',
'xlsm' => 'Excel', 'xlsm' => 'Excel',
'xlsx' => 'Excel', 'xlsx' => 'Excel',
'xltm' => 'Excel template', 'xltm' => 'Excel template',
'xltx' => 'Excel template', 'xltx' => 'Excel template'
);
);
$tables_mime = array( $tables_mime = array(
// Images reconnues par PHP // Images reconnues par PHP
'jpg'=>'image/jpeg', 'jpg' => 'image/jpeg',
'png'=>'image/png', 'png' => 'image/png',
'gif'=>'image/gif', 'gif' => 'image/gif',
// Autres images (peuvent utiliser le tag <img>) // Autres images (peuvent utiliser le tag <img>)
'bmp'=>'image/x-ms-bmp', // pas enregistre par IANA, variante: image/bmp 'bmp' => 'image/x-ms-bmp', // pas enregistre par IANA, variante: image/bmp
'tif'=>'image/tiff', 'tif' => 'image/tiff',
// Multimedia (peuvent utiliser le tag <embed>) // Multimedia (peuvent utiliser le tag <embed>)
'aiff'=>'audio/x-aiff', 'aiff' => 'audio/x-aiff',
'asf'=>'video/x-ms-asf', 'asf' => 'video/x-ms-asf',
'avi'=>'video/x-msvideo', 'avi' => 'video/x-msvideo',
'anx'=>'application/annodex', 'anx' => 'application/annodex',
'axa'=>'audio/annodex', 'axa' => 'audio/annodex',
'axv'=>'video/annodex', 'axv' => 'video/annodex',
'dv' => 'video/x-dv',
'f4a' => 'audio/mp4',
'f4b' => 'audio/mp4',
'f4p' => 'video/mp4',
'f4v' => 'video/mp4',
'flac' => 'audio/x-flac', 'flac' => 'audio/x-flac',
'flv' => 'video/x-flv', 'flv' => 'video/x-flv',
'mid'=>'audio/midi', 'm4a' => 'audio/mp4a-latm',
'm4b' => 'audio/mp4a-latm',
'm4p' => 'audio/mp4a-latm',
'm4u' => 'video/vnd.mpegurl',
'm4v' => 'video/x-m4v',
'mid' => 'audio/midi',
'mka' => 'audio/mka', 'mka' => 'audio/mka',
'mkv' => 'video/mkv', 'mkv' => 'video/mkv',
'mng'=>'video/x-mng', 'mng' => 'video/x-mng',
'mov'=>'video/quicktime', 'mov' => 'video/quicktime',
'mp3'=>'audio/mpeg', 'mp3' => 'audio/mpeg',
'mp4' => 'application/mp4', 'mp4' => 'application/mp4',
'mpg'=>'video/mpeg', 'mpc' => 'audio/x-musepack',
'mpg' => 'video/mpeg',
'oga' => 'audio/ogg', 'oga' => 'audio/ogg',
'ogg' => 'audio/ogg ', 'ogg' => 'audio/ogg',
'ogv' => 'video/ogg ', 'ogv' => 'video/ogg',
'ogx' => 'application/ogg ', 'ogx' => 'application/ogg',
'qt' =>'video/quicktime', 'qt' => 'video/quicktime',
'ra' =>'audio/x-pn-realaudio', 'ra' => 'audio/x-pn-realaudio',
'ram'=>'audio/x-pn-realaudio', 'ram' => 'audio/x-pn-realaudio',
'rm' =>'audio/x-pn-realaudio', 'rm' => 'audio/x-pn-realaudio',
'spx' => 'audio/ogg', 'spx' => 'audio/ogg',
'svg'=>'image/svg+xml', 'svg'=>'image/svg+xml',
'swf'=>'application/x-shockwave-flash', 'swf'=>'application/x-shockwave-flash',
...@@ -191,48 +211,48 @@ $tables_mime = array( ...@@ -191,48 +211,48 @@ $tables_mime = array(
'3gp'=>'video/3gpp', '3gp'=>'video/3gpp',
// Documents varies // Documents varies
'ai' =>'application/illustrator', 'ai' => 'application/illustrator',
'abw' =>'application/abiword', 'abw' => 'application/abiword',
'bin' => 'application/octet-stream', # le tout-venant 'bin' => 'application/octet-stream', # le tout-venant
'blend' => 'application/x-blender', 'blend' => 'application/x-blender',
'bz2'=>'application/x-bzip2', 'bz2' => 'application/x-bzip2',
'c' =>'text/x-csrc', 'c' => 'text/x-csrc',
'css'=>'text/css', 'css' => 'text/css',
'csv'=>'text/csv', 'csv' => 'text/csv',
'deb'=>'application/x-debian-package', 'deb' => 'application/x-debian-package',
'doc'=>'application/msword', 'doc' => 'application/msword',
'djvu'=>'image/vnd.djvu', 'djvu' => 'image/vnd.djvu',
'dvi'=>'application/x-dvi', 'dvi' => 'application/x-dvi',
'eps'=>'application/postscript', 'eps' => 'application/postscript',
'gz' =>'application/x-gzip', 'gz' => 'application/x-gzip',
'h' =>'text/x-chdr', 'h' => 'text/x-chdr',
'html'=>'text/html', 'html' => 'text/html',
'kml'=>'application/vnd.google-earth.kml+xml', 'kml' => 'application/vnd.google-earth.kml+xml',
'kmz'=>'application/vnd.google-earth.kmz', 'kmz' => 'application/vnd.google-earth.kmz',
'pas'=>'text/x-pascal', 'pas' => 'text/x-pascal',
'pdf'=>'application/pdf', 'pdf' => 'application/pdf',
'pgn' =>'application/x-chess-pgn', 'pgn' => 'application/x-chess-pgn',
'ppt'=>'application/vnd.ms-powerpoint', 'ppt' => 'application/vnd.ms-powerpoint',
'ps' =>'application/postscript', 'ps' => 'application/postscript',
'psd'=>'image/x-photoshop', // pas enregistre par IANA 'psd' => 'image/x-photoshop', // pas enregistre par IANA
'rpm'=>'application/x-redhat-package-manager', 'rpm' => 'application/x-redhat-package-manager',
'rtf'=>'application/rtf', 'rtf' => 'application/rtf',
'sdd'=>'application/vnd.stardivision.impress', 'sdd' => 'application/vnd.stardivision.impress',
'sdw'=>'application/vnd.stardivision.writer', 'sdw' => 'application/vnd.stardivision.writer',
'sit'=>'application/x-stuffit', 'sit' => 'application/x-stuffit',
'sxc'=>'application/vnd.sun.xml.calc', 'sxc' => 'application/vnd.sun.xml.calc',
'sxi'=>'application/vnd.sun.xml.impress', 'sxi' => 'application/vnd.sun.xml.impress',
'sxw'=>'application/vnd.sun.xml.writer', 'sxw' => 'application/vnd.sun.xml.writer',
'tex'=>'text/x-tex', 'tex' => 'text/x-tex',
'tgz'=>'application/x-gtar', 'tgz' => 'application/x-gtar',
'torrent' => 'application/x-bittorrent', 'torrent' => 'application/x-bittorrent',
'ttf'=>'application/x-font-ttf', 'ttf' => 'application/x-font-ttf',
'txt'=>'text/plain', 'txt' => 'text/plain',
'xcf'=>'application/x-xcf', 'xcf' => 'application/x-xcf',
'xls'=>'application/vnd.ms-excel', 'xls' => 'application/vnd.ms-excel',
'xspf'=>'application/xspf+xml', 'xspf' => 'application/xspf+xml',
'xml'=>'application/xml', 'xml' => 'application/xml',
'zip'=>'application/zip', 'zip' => 'application/zip',
// Open Document format // Open Document format
'odt' => 'application/vnd.oasis.opendocument.text', 'odt' => 'application/vnd.oasis.opendocument.text',
...@@ -249,9 +269,8 @@ $tables_mime = array( ...@@ -249,9 +269,8 @@ $tables_mime = array(
'otp' => 'application/vnd.oasis.opendocument.presentation-template', 'otp' => 'application/vnd.oasis.opendocument.presentation-template',
'otg' => 'application/vnd.oasis.opendocument.graphics-template', 'otg' => 'application/vnd.oasis.opendocument.graphics-template',
'cls' => 'text/x-tex',
'cls'=>'text/x-tex', 'sty' => 'text/x-tex',
'sty'=>'text/x-tex',
// Open XML File Formats // Open XML File Formats
'docm' => 'application/vnd.ms-word.document.macroEnabled.12', 'docm' => 'application/vnd.ms-word.document.macroEnabled.12',
...@@ -272,13 +291,13 @@ $tables_mime = array( ...@@ -272,13 +291,13 @@ $tables_mime = array(
'xlsm' => 'application/vnd.ms-excel.sheet.macroEnabled.12', 'xlsm' => 'application/vnd.ms-excel.sheet.macroEnabled.12',
'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
'xltm' => 'application/vnd.ms-excel.template.macroEnabled.12', 'xltm' => 'application/vnd.ms-excel.template.macroEnabled.12',
'xltx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.template', 'xltx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.template'
); );
$mime_alias = array ( $mime_alias = array (
'audio/x-mpeg' => 'audio/mpeg', 'audio/x-mpeg' => 'audio/mpeg',
'audio/x-musepack' => 'audio/musepack',
'application/x-ogg' => 'application/ogg', 'application/x-ogg' => 'application/ogg',
'video/mp4' => 'application/mp4', 'video/mp4' => 'application/mp4',
'video/flv' => 'video/x-flv', 'video/flv' => 'video/x-flv',
......
...@@ -21,7 +21,7 @@ error_reporting(E_ALL ^ E_NOTICE); ...@@ -21,7 +21,7 @@ error_reporting(E_ALL ^ E_NOTICE);
# ne concerne que le fichier mes_options.php3 # ne concerne que le fichier mes_options.php3
define('_EXTENSION_PHP', '.php3'); define('_EXTENSION_PHP', '.php3');
#define('_EXTENSION_PHP', ''); #define('_EXTENSION_PHP', '');
#mettre a true pour compatibilite PHP3 #mettre a true pour compatibilite PHP3
define('_FEED_GLOBALS', false); define('_FEED_GLOBALS', false);
# le nom du repertoire ecrire/ # le nom du repertoire ecrire/
...@@ -225,7 +225,7 @@ $controler_dates_rss = true; ...@@ -225,7 +225,7 @@ $controler_dates_rss = true;
// class_spip : savoir si on veut class="spip" sur p i strong & li // class_spip : savoir si on veut class="spip" sur p i strong & li
// class_spip_plus : class="spip" sur les ul ol h3 hr quote table... // class_spip_plus : class="spip" sur les ul ol h3 hr quote table...
// la difference c'est que des css specifiques existent pour les seconds // la difference c'est que des css specifiques existent pour les seconds
// //
$class_spip = ''; /*' class="spip"'*/ $class_spip = ''; /*' class="spip"'*/
$class_spip_plus = ' class="spip"'; $class_spip_plus = ' class="spip"';
$toujours_paragrapher = true; $toujours_paragrapher = true;
...@@ -355,7 +355,7 @@ $table_date = array(); ...@@ -355,7 +355,7 @@ $table_date = array();
$table_titre = array(); $table_titre = array();
$tables_jointures = array(); $tables_jointures = array();
// Liste des statuts. // Liste des statuts.
$liste_des_statuts = array( $liste_des_statuts = array(
"info_administrateurs" => '0minirezo', "info_administrateurs" => '0minirezo',
"info_redacteurs" =>'1comite', "info_redacteurs" =>'1comite',
...@@ -368,7 +368,7 @@ $liste_des_etats = array( ...@@ -368,7 +368,7 @@ $liste_des_etats = array(
'texte_statut_propose_evaluation' => 'prop', 'texte_statut_propose_evaluation' => 'prop',
'texte_statut_publie' => 'publie', 'texte_statut_publie' => 'publie',
'texte_statut_poubelle' => 'poubelle', 'texte_statut_poubelle' => 'poubelle',
'texte_statut_refuse' => 'refuse' 'texte_statut_refuse' => 'refuse'
); );
$liste_des_forums = array( $liste_des_forums = array(
...@@ -391,16 +391,16 @@ $liste_des_authentifications = array( ...@@ -391,16 +391,16 @@ $liste_des_authentifications = array(
// Droits d'acces maximum par defaut // Droits d'acces maximum par defaut
@umask(0); @umask(0);
// numero de branche, utilise par les plugins // numero de branche, utilise par les plugins
// pour specifier les versions de SPIP necessaires // pour specifier les versions de SPIP necessaires
// il faut s'en tenir a un nombre de decimales fixe // il faut s'en tenir a un nombre de decimales fixe
// ex : 2.0.0, 2.0.0-dev, 2.0.0-beta, 2.0.0-beta2 // ex : 2.0.0, 2.0.0-dev, 2.0.0-beta, 2.0.0-beta2
$spip_version_branche = "2.2.0-dev"; $spip_version_branche = "2.2.0-dev";
// version des signatures de fonctions PHP // version des signatures de fonctions PHP
// (= numero SVN de leur derniere modif cassant la compatibilite et/ou necessitant un recalcul des squelettes) // (= numero SVN de leur derniere modif cassant la compatibilite et/ou necessitant un recalcul des squelettes)
$spip_version_code = 14720; $spip_version_code = 14720;
// version de la base SQL (= numero SVN de sa derniere modif) // version de la base SQL (= numero SVN de sa derniere modif)
$spip_version_base = 14598; $spip_version_base = 15676;
// version de l'interface a la base // version de l'interface a la base
$spip_sql_version = 1; $spip_sql_version = 1;
......
...@@ -65,12 +65,12 @@ $GLOBALS['maj'][11388] = array(array('maj_11388')); ...@@ -65,12 +65,12 @@ $GLOBALS['maj'][11388] = array(array('maj_11388'));
// reparer spip_mots.type = titre du groupe // reparer spip_mots.type = titre du groupe
function maj_11431 () { function maj_11431 () {
// mysql only // mysql only
// spip_query("UPDATE spip_mots AS a LEFT JOIN spip_groupes_mots AS b ON (a.id_groupe = b.id_groupe) SET a.type=b.titre"); // spip_query("UPDATE spip_mots AS a LEFT JOIN spip_groupes_mots AS b ON (a.id_groupe = b.id_groupe) SET a.type=b.titre");
// selection des mots cles dont le type est different du groupe // selection des mots cles dont le type est different du groupe
$res = sql_select( $res = sql_select(
array("a.id_mot AS id_mot", "b.titre AS type"), array("a.id_mot AS id_mot", "b.titre AS type"),
array("spip_mots AS a LEFT JOIN spip_groupes_mots AS b ON (a.id_groupe = b.id_groupe)"), array("spip_mots AS a LEFT JOIN spip_groupes_mots AS b ON (a.id_groupe = b.id_groupe)"),
array("a.type != b.titre")); array("a.type != b.titre"));
// mise a jour de ces mots la // mise a jour de ces mots la
...@@ -82,7 +82,7 @@ function maj_11431 () { ...@@ -82,7 +82,7 @@ function maj_11431 () {
} }
$GLOBALS['maj'][11431] = array(array('maj_11431')); $GLOBALS['maj'][11431] = array(array('maj_11431'));
// reparer spip_types_documents.id_type // reparer spip_types_documents.id_type
// qui est parfois encore present // qui est parfois encore present
function maj_11778 () { function maj_11778 () {
// si presence id_type // si presence id_type
...@@ -233,7 +233,6 @@ $GLOBALS['maj'][14558] = array(array('upgrade_types_documents')); ...@@ -233,7 +233,6 @@ $GLOBALS['maj'][14558] = array(array('upgrade_types_documents'));
// etre sur qu'ils sont bien unipotents(?)... // etre sur qu'ils sont bien unipotents(?)...
$GLOBALS['maj'][14559] = $GLOBALS['maj'][13904]+$GLOBALS['maj'][13929]+$GLOBALS['maj'][14558]; $GLOBALS['maj'][14559] = $GLOBALS['maj'][13904]+$GLOBALS['maj'][13929]+$GLOBALS['maj'][14558];
// La version 14588 etait une mauvaise piste: // La version 14588 etait une mauvaise piste:
// Retour en arriere pour ceux qui l'ont subi, ne rien faire sinon // Retour en arriere pour ceux qui l'ont subi, ne rien faire sinon
if (@$GLOBALS['meta']['version_installee'] >= 14588) { if (@$GLOBALS['meta']['version_installee'] >= 14588) {
...@@ -244,7 +243,7 @@ if (@$GLOBALS['meta']['version_installee'] >= 14588) { ...@@ -244,7 +243,7 @@ if (@$GLOBALS['meta']['version_installee'] >= 14588) {
array('sql_alter',"TABLE spip_documents CHANGE mode genre ENUM('vignette', 'image', 'document') DEFAULT 'document' NOT NULL"), array('sql_alter',"TABLE spip_documents CHANGE mode genre ENUM('vignette', 'image', 'document') DEFAULT 'document' NOT NULL"),
array('sql_alter',"TABLE spip_documents ADD INDEX genre(genre)") array('sql_alter',"TABLE spip_documents ADD INDEX genre(genre)")
); );
// solution moins intrusive au pb de mot-cl d'Oracle, retour avant 14588 // solution moins intrusive au pb de mot-cl d'Oracle, retour avant 14588
$GLOBALS['maj'][14598] = array( $GLOBALS['maj'][14598] = array(
array('sql_alter',"TABLE spip_documents DROP INDEX genre"), array('sql_alter',"TABLE spip_documents DROP INDEX genre"),
array('sql_alter',"TABLE spip_documents CHANGE genre mode ENUM('vignette', 'image', 'document') DEFAULT 'document' NOT NULL"), array('sql_alter',"TABLE spip_documents CHANGE genre mode ENUM('vignette', 'image', 'document') DEFAULT 'document' NOT NULL"),
...@@ -252,4 +251,10 @@ if (@$GLOBALS['meta']['version_installee'] >= 14588) { ...@@ -252,4 +251,10 @@ if (@$GLOBALS['meta']['version_installee'] >= 14588) {
); );
} }
// Restauration correcte des types mime des fichiers Ogg
// http://trac.rezo.net/trac/spip/ticket/1941
// + Types de fichiers : f4a/f4b/f4p/f4v/mpc http://en.wikipedia.org/wiki/Flv#File_formats
// + Report du commit oublié : http://trac.rezo.net/trac/spip/changeset/14272
$GLOBALS['maj'][15676] = array(array('upgrade_types_documents'));
?> ?>
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter