includes/wikiformat.php
changeset 438 c9522c961e10
parent 407 35d94240a197
child 460 3a1c99845ca8
equal deleted inserted replaced
437:b66f029ae12d 438:c9522c961e10
   107         if (is_array($rules)) {
   107         if (is_array($rules)) {
   108             $this->rules = $rules;
   108             $this->rules = $rules;
   109         }
   109         }
   110         
   110         
   111         global $plugins;
   111         global $plugins;
   112         $code = $plugins->setHook('text_wiki_construct');
   112         // This code can be run from the installer, so in some cases $plugins
   113         foreach ( $code as $cmd )
   113         // isn't initted. (Bug in 1.1.2, fixed for 1.1.3)
       
   114         if ( is_object($plugins) )
   114         {
   115         {
   115             eval($cmd);
   116           $code = $plugins->setHook('text_wiki_construct');
       
   117           foreach ( $code as $cmd )
       
   118           {
       
   119               eval($cmd);
       
   120           }
   116         }
   121         }
   117 
   122 
   118         $this->addPath(
   123         $this->addPath(
   119             'parse',
   124             'parse',
   120             $this->fixPath(ENANO_ROOT) . 'includes/wikiengine/Parse/Default/'
   125             $this->fixPath(ENANO_ROOT) . 'includes/wikiengine/Parse/Default/'