[eluser]codex[/eluser]
[quote author="gunter" date="1207798153"]while this does:
Code:
---------
$this->load->library('upload', $config);
$this->upload->initialize($config);
It seems as if the config array isn't being set. Weird, but at least it works (kinda). Does someone have an idea as to why this happens?[/quote]
thats because you try to load the library and set the config array... but it seems that the library is already loaded - and if you try to load a library that is already loaded... then loader class stops and the new config arraay will not be set...
so, passing the $config array works only if the upload library isntĀ“t already loaded
[/quote]
Makes sense, except that the upload library hasn't been loaded yet. Or at least, I'm not aware of it being loaded somewhere else. First time I encountered something like this...