equal
deleted
inserted
replaced
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/' |