Re: Removing a magic value in favor of a variable

Aleksander Machniak <[email protected]>
Newsgroups gmane.comp.kde.devel.kroupware
Message-ID <9001d806-4e26-cf65-56ac-a36f9371c841__27008.3946803183$1583342146$gmane$org@kolabsys.com>
On 04.03.2020 17:42, Kevin Kremer wrote:
> Hi all,
> 
> I just ran into a problem with a magic value at plugins/kolab_tags/lib/kolab_tags_backend.php:48
> When creating more than 100 tags per folder they just disappear from the webinterface (even though they are created successfully on the server). While changing the magic value fixed the problem for me, I'd like to create a PR that changes the magic value to a variable (e.g. $config['kolab_tags_per_folder'] = 100). Unfortunately, I failed to access the global configuration from class kolab_tags_backend. Other plugins use something like $this->rc->config->get('config_name').

rcube::get_instance()->config->get('config_name');

-- 
Aleksander Machniak
Senior Software Engineer
Kolab Systems AG: https://kolabsystems.com
PGP: 19359DC1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.