Changeset 22116 for extensions/Autosize


Ignore:
Timestamp:
Apr 10, 2013, 10:55:02 AM (11 years ago)
Author:
cljosse
Message:

[extensions] Autosize update to piwigo 2.5

Location:
extensions/Autosize
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/Autosize/autosize.inc.php

    r19986 r22116  
    123123                  global $conf, $template, $page;   
    124124       if(!isset($conf['AS_panorama'])) return $content; 
    125                   $asp = & $conf['AS_panorama'];   
     125                if(  !is_array($conf['AS_panorama']) ){
     126                return $content;
     127        }
     128         $asp = & $conf['AS_panorama'];                   
     129      if(!isset($asp['in_mode_360'])) $asp['in_mode_360']="";
     130      if(!isset($asp['in_mode_180'])) $asp['in_mode_180']="";
     131     
    126132       if ( !stristr($image['name'], $asp['in_mode_360']) and !stristr($image['name'], $asp['in_mode_180']) ) return $content;
    127133
  • extensions/Autosize/js/autosize.dimensions.js

    r18716 r22116  
    564564
    565565  function num(el, prop) {
    566     valeur_num = jQuery.curCSS(el.jquery ? el[0] : el, prop, true);
     566
     567    valeur_num = jQuery.css(el.jquery ? el[0] : el, prop, true);
    567568
    568569    return Parse_Int(valeur_num);
  • extensions/Autosize/main.inc.php

    r19986 r22116  
    22/*
    33Plugin Name: AutoSize
    4 Version: 3.0.8
     4Version: 3.0.9
    55Description: Ajuste l'affichage des photos en fonction de la hauteur de la fenetre de navigation
    66Plugin URI: http://piwigo.org/ext/extension_view.php?eid=448
  • extensions/Autosize/maintain.inc.php

    r19156 r22116  
    9898       if (!isset($conf['cl_derivatives_sav'])){   
    9999       $req = mysql_query('SELECT count(distinct(`param`)) FROM '.CONFIG_TABLE.'   WHERE `param` LIKE "'.'cl_derivatives_sav'.'"  ');
    100             $op=mysql_fetch_row($req);       
     100            $op=mysqli_fetch_row($req);       
    101101            if(count($op)==0){
    102102                $q = 'INSERT INTO '.CONFIG_TABLE.' (param, value, comment)
Note: See TracChangeset for help on using the changeset viewer.