Changeset 986

Show
Ignore:
Timestamp:
08/21/10 11:07:51 (18 months ago)
Author:
ort
Message:

Assign to template array plugins web path

Location:
trunk/engine
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/engine/classes/Plugin.class.php

    r932 r986  
    137137                if ($sObjectName=='template') { 
    138138                        if(!$sTo) { 
    139                                 $sTo = $this->GetTemplatePath(get_class($this)).$sFrom; 
     139                                $sTo = self::GetTemplatePath(get_class($this)).$sFrom; 
    140140                        } else { 
    141141                                $sTo=preg_replace("/^_/",$this->GetTemplatePath(get_class($this)),$sTo); 
  • trunk/engine/modules/viewer/Viewer.class.php

    r984 r986  
    279279                 */ 
    280280                $aPlugins=$this->oEngine->GetPlugins(); 
    281                 $this->Assign("aPluginActive",array_fill_keys(array_keys($aPlugins),true));              
     281                $this->Assign("aPluginActive",array_fill_keys(array_keys($aPlugins),true)); 
     282                /** 
     283                 * Загружаем пути до шаблонов плагинов 
     284                 */ 
     285                $aTemplateWebPathPlugin=array(); 
     286                foreach ($aPlugins as $k=>$oPlugin) { 
     287                        $aTemplateWebPathPlugin[$k]=Plugin::GetTemplateWebPath(get_class($oPlugin)); 
     288                } 
     289                $this->Assign("aTemplateWebPathPlugin",$aTemplateWebPathPlugin); 
    282290        } 
    283291