Plugin Directory

Changeset 337119


Ignore:
Timestamp:
01/25/2011 05:24:00 PM (15 years ago)
Author:
jameslafferty
Message:

Restored original autoloader.

Location:
mailchimp-widget/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • mailchimp-widget/trunk/mailchimp-widget.php

    r336415 r337119  
    55Description:
    66Author: James Lafferty
    7 Version: 0.7
     7Version: 0.7.1
    88Author URI: https://github.com/kalchas
    99License: GPL2
     
    2626*/
    2727
    28 require_once('lib/mcapi.class.php');
    29 require_once('lib/ns_mc_plugin.class.php');
    30 require_once('lib/ns_widget_mailchimp.class.php');
     28/**
     29 * Set up the autoloader.
     30 */
     31
     32set_include_path(get_include_path() . PATH_SEPARATOR . realpath(dirname(__FILE__) . '/lib/'));
     33
     34spl_autoload_extensions('.class.php');
     35
     36if (! function_exists('buffered_autoloader')) {
     37   
     38    function buffered_autoloader ($c) {
     39
     40        try {
     41       
     42            spl_autoload($c);
     43           
     44        } catch (Exception $e) {
     45           
     46            $message = $e->getMessage();
     47           
     48            return $message;
     49           
     50        }
     51       
     52
     53    }
     54   
     55}
     56
     57spl_autoload_register('buffered_autoloader');
    3158
    3259/**
  • mailchimp-widget/trunk/readme.txt

    r336415 r337119  
    4141
    4242== Changelog ==
     43
     44= 0.7.1 =
     45* Restores the original autoloader.
     46
    4347= 0.7 =
    4448* Added French language support. Thank you to Frederick Marcoux for this contribution!
     
    8791
    8892== Upgrade Notice ==
     93= 0.7.1 =
     94Fixes namespace issue introduced in 0.7.
     95
    8996= 0.7 =
    9097* Adds French language support. Thank you Frederick Marcoux for the translation.
Note: See TracChangeset for help on using the changeset viewer.