Ponizej zamieszczam ostatnie liniki kodu
class skinMaster
{
public function __construct( ipsRegistry $registry )
{
/* Make object */
$this->registry = $registry;
$this->DB = $this->registry->DB();
$this->settings =& $this->registry->fetchSettings();
$this->request =& $this->registry->fetchRequest();
$this->lang = $this->registry->getClass('class_localization');
$this->member = $this->registry->member();
$this->memberData =& $this->registry->member()->fetchMemberData();
$this->cache = $this->registry->cache();
$this->caches =& $this->registry->cache()->fetchCaches();
}
public function __call( $funcName, $args )
{
$className = get_class( $this );
if ( strstr( $className, 'skin_' ) )
{
preg_match( '#^skin_(.*)_(\d+?)$#', $className, $matches );
$skinName = $matches[1];
$skinID = $matches[2];
/* If we're here it's because the template bit doesn't exist, so... */
return "<div class='templateError'>Error: Could not load template '$funcName' from group '$skinName'</div>";
}
/* Still here... */
trigger_error( "Method $funcName does not exist in $className", E_USER_ERROR );
}
}
Linijka 4051 = trigger_error( "Method $funcName does not exist in $className", E_USER_ERROR );