danreeves / picotags

[Deprecated] Adds page tagging functionality to Pico.
MIT License
4 stars 3 forks source link

$nbcol should be defined in config.php, so you don't need to edit the plugin #4

Closed danreeves closed 10 years ago

danreeves commented 10 years ago

the plugin needs to use the hook for getting the config, something like:

public function config_loaded(&$settings) {

        if (isset($settings['nbcol']))
            $this->nbcol = $settings['nbcol'];
    }

then you can set it in config.php with $config['nbcol'] = 2; and access it in the plugin with $this->nbcol.

danreeves commented 10 years ago

Fixed in commit 9247f31