[dokuwiki] Re: plugin manager - implode problem inside function plugin_readlog

  • From: <dae@xxxxxxxxxxxxxxxxxx>
  • To: <dokuwiki@xxxxxxxxxxxxx>
  • Date: Thu, 2 Feb 2006 12:20:01 -0800

thanks. that fixed it.

-- doug edmunds

btw, the "url" in admin.php > getInfo() does not exist.

    function getInfo(){
      $disabled = ($this->disabled) ? '(disabled)' : '';

      return array(
        'author' => 'Christopher Smith',
        'email'  => 'chris@xxxxxxxxxxxxx',
        'date'   => '2005-08-10',
        'name'   => 'Plugin Manager',
        'desc'   => "Manage Plugins, including automated plugin
installer $disabled",
        'url'    =>
'http://wiki.splitbrain.org/plugin:adminplugin',
      );
    }

-----Original Message-----
[1] You can fix this by placing defining the $match array before
the
preg_match_all call ....

<snip>
   $match = array();
   if (preg_match_all('/'.$field.'=(.*)$/m',$log[$plugin],$match))
     return implode("\n", $match[1]);
   return '';
<snip>


-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: