includes/wikiformat.php
changeset 438 c9522c961e10
parent 407 35d94240a197
child 460 3a1c99845ca8
--- a/includes/wikiformat.php	Thu Feb 21 17:18:25 2008 -0500
+++ b/includes/wikiformat.php	Thu Feb 21 17:19:49 2008 -0500
@@ -109,10 +109,15 @@
         }
         
         global $plugins;
-        $code = $plugins->setHook('text_wiki_construct');
-        foreach ( $code as $cmd )
+        // This code can be run from the installer, so in some cases $plugins
+        // isn't initted. (Bug in 1.1.2, fixed for 1.1.3)
+        if ( is_object($plugins) )
         {
-            eval($cmd);
+          $code = $plugins->setHook('text_wiki_construct');
+          foreach ( $code as $cmd )
+          {
+              eval($cmd);
+          }
         }
 
         $this->addPath(