WordPress.org

Plugin Directory

Changeset 1300984


Ignore:
Timestamp:
12/05/15 05:08:08 (2 years ago)
Author:
silasco
Message:

fixed bug in class loader

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-pear-debug/trunk/lib/util/wpdutil.class.php

    r383387 r1300984  
    2929            } 
    3030     
    31             if(!file_exists($sFile) || !class_exists($sClass)) 
     31            if(!file_exists($sFile) ) 
    3232            { 
    33                 Throw new Exception("Unable to load class: ". $sFile); 
     33                Throw new Exception("Unable to load class file: ". $sFile); 
    3434            } 
    3535             
    3636            require_once($sFile); 
    3737        } 
     38 
     39        return $sClass; 
    3840    } 
    3941    //return instance of class from file 
     
    4143    { 
    4244        //Include file if not already included 
    43         self::loadClass($sClassPath); 
    44      
     45        $sClass = self::loadClass($sClassPath); 
     46 
    4547        //New instance of class 
    4648        $oClass =  new $sClass; 
Note: See TracChangeset for help on using the changeset viewer.