Opened 4 years ago
props: enhancement for the variables tempFileSystemPath and tempFileURLPath
|Reported by:||ntm||Owned by:||seek3r|
|Severity:||minor||Keywords:||podpress, tempFileSystemPath, tempFileURLPath, absolute path, absolute URL|
|Cc:||seek3r, azaozz, ntm|
These variables are used in the podPress_class function of the podPress_class class in the file podPress_class.php.
tempFileSystemPath is the folder ... /wp-content/uploads/podpress_temp were the stats chart images are stored. This variable should contain the absolute path name to this folder.
Originally the folder name is assembled this way
$this->tempFileSystemPath = ABSPATH.get_option('upload_path').'/podpress_temp';
The folder name will be always constructed out of the ABSPATH const and the upload_path. On the other hand it seems to be no problem to enter the absolute path for the upload folder at the Miscellaneous Settings page of WP. And if someone does that then there would be no stats charts.
The attachment of this ticket contains a patch for this.
But this is a limited enhancement and maybe it would be better to think a about more sophisticated solutions. Or what did you think about this?