categories management errors
Brought to you by:
usr_c
When I clicked to create a category from the ACP (Administration Control Panel) I got 2 php errors: mkdir and chmod functions couldn't do create the directory in the uploads/ folder even though uploads/ directory permission's are set to CHMOD 777.
Here's how I fixed it:
I opened <root_path>/functions/f_admin.php and changed this:
$path = getPicturesPathFromCategory($config, $row['cid'], 1, "");
to this:
$path = '.'.getPicturesPathFromCategory($config, $row['cid'], 1, "");
It wasn't a big deal, but it was a little bug and I had the obligation to report this.
Also another little bug on <root_path>functions/f_cats.php on moveFiles function():
this:
$dir = $path_from;
should be:
$dir = '.'.$path_from;