includes/wikiformat.php
changeset 407 35d94240a197
parent 371 dc6026376919
child 438 c9522c961e10
equal deleted inserted replaced
406:7468a663315f 407:35d94240a197
   105     function Text_Wiki($rules = null)
   105     function Text_Wiki($rules = null)
   106     {
   106     {
   107         if (is_array($rules)) {
   107         if (is_array($rules)) {
   108             $this->rules = $rules;
   108             $this->rules = $rules;
   109         }
   109         }
       
   110         
       
   111         global $plugins;
       
   112         $code = $plugins->setHook('text_wiki_construct');
       
   113         foreach ( $code as $cmd )
       
   114         {
       
   115             eval($cmd);
       
   116         }
   110 
   117 
   111         $this->addPath(
   118         $this->addPath(
   112             'parse',
   119             'parse',
   113             $this->fixPath(ENANO_ROOT) . 'includes/wikiengine/Parse/Default/'
   120             $this->fixPath(ENANO_ROOT) . 'includes/wikiengine/Parse/Default/'
   114         );
   121         );