Changeset 79195 in spip-zone


Ignore:
Timestamp:
Dec 6, 2013, 9:31:48 AM (5 years ago)
Author:
cedric@…
Message:

mise a jour de la lib

Location:
_plugins_/adaptive_images/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/adaptive_images/trunk/lib/AdaptiveImages/AdaptiveImages.php

    r79194 r79195  
    33 * AdaptiveImages
    44 *
    5  * @version    1.1.0
     5 * @version    1.1.1
    66 * @copyright  2013
    77 * @author     Nursit
     
    171171         */
    172172        static public function getInstance() {
    173                 $class_name = get_called_class();
     173                $class_name = (function_exists("get_called_class")?get_called_class():"AdaptiveImages");
    174174                if(!array_key_exists($class_name, self::$instances)) {
    175175      self::$instances[$class_name] = new $class_name();
  • _plugins_/adaptive_images/trunk/lib/AdaptiveImages/README.md

    r79194 r79195  
    99
    1010PHP>=5.1 with GD library
     11(if PHP<5.3.0 extending `AdaptiveImages` also needs to override method `getInstance()`)
    1112
    1213
     
    4748If this is not the case in your URL scheme, you can override the 2 methods `URL2filepath` and `filepath2URL` that are used to make transpositions.
    4849
    49 In the following example we transpose absolutes URLs to relative file system path and, if defined we add special domain _ADAPTIVE_IMAGES_DOMAIN to file path in the final URL (domain sharding)
     50In the following example we transpose absolutes URLs to relative file system path and, if defined we add special domain `_ADAPTIVE_IMAGES_DOMAIN` to file path in the final URL (domain sharding)
    5051
    5152<pre>
  • _plugins_/adaptive_images/trunk/paquet.xml

    r79194 r79195  
    22        prefix="adaptive_images"
    33        categorie="multimedia"
    4         version="1.4.0"
     4        version="1.4.1"
    55        etat="stable"
    66        compatibilite="[3.0.0;3.0.*]"
Note: See TracChangeset for help on using the changeset viewer.