includes/wikiengine/Parse/Mediawiki/Wikilink.php
changeset 72 bda11e521e8a
parent 35 efae425e9b98
equal deleted inserted replaced
71:21770a1a5213 72:bda11e521e8a
    99     function Text_Wiki_Parse_Wikilink(&$obj)
    99     function Text_Wiki_Parse_Wikilink(&$obj)
   100     {
   100     {
   101         $default = $this->conf;
   101         $default = $this->conf;
   102         parent::Text_Wiki_Parse($obj);
   102         parent::Text_Wiki_Parse($obj);
   103         
   103         
   104         global $paths;
   104         if ( defined('IN_ENANO_INSTALL') )
   105         $this->imageConf = array(
   105         {
   106           'prefix' => array(':' . $paths->nslist['File'])
   106           // This doesn't really matter in the installer
   107           );
   107           $this->imageConf = array(
       
   108             'prefix' => array(':File:')
       
   109             );
       
   110         }
       
   111         else
       
   112         {
       
   113           global $paths;
       
   114           $this->imageConf = array(
       
   115             'prefix' => array(':' . $paths->nslist['File'])
       
   116             );
       
   117         }
   108 
   118 
   109         // override config options for image if specified
   119         // override config options for image if specified
   110         if (in_array('Image', $this->wiki->disable)) {
   120         if (in_array('Image', $this->wiki->disable)) {
   111             $this->imageConf['prefix'] = array();
   121             $this->imageConf['prefix'] = array();
   112         } else {
   122         } else {