-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated to Codeigniter 4 #21
Conversation
@@ -525,7 +469,7 @@ private function prepareRawFileName($fileNameInBase64) { | |||
|
|||
//let's determine what the current log file is | |||
if(!is_null($fileNameInBase64) && !empty($fileNameInBase64)) { | |||
$currentFile = $this->logFolderPath . "/". basename(base64_decode($fileNameInBase64)); | |||
$currentFile = $this->logFolderPath . basename(base64_decode($fileNameInBase64)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you certain $this->logFolderPath
is going to end in /
all the time? I'll say we should do a check if $this->logFolderPath
ends with a /
or not
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can check that all CI4 paths (APPPATH, SYSTEMPATH, ROOTPATH, ... ) are explicitly defined with a trailing directory separator, and they are concatenated everywhere in the code assuming this, so seems to be kind of the path convention.
However if you want we can add this to make life easier to users.
Co-authored-by: Seun Matt <smatt382@gmail.com>
Co-authored-by: Seun Matt <smatt382@gmail.com>
Co-authored-by: Seun Matt <smatt382@gmail.com>
Co-authored-by: Seun Matt <smatt382@gmail.com>
Kudos @savioret please let me know when I can review again, thanks. |
I've finished. It's all yours. |
Sorry just found an error in the customization of viewName, it was wrongly named viewPath, it's fixed. |
Please review comments of #18 (comment)