Skip to content
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

Merged
merged 18 commits into from
Oct 8, 2022
Merged

Updated to Codeigniter 4 #21

merged 18 commits into from
Oct 8, 2022

Conversation

savioret
Copy link
Contributor

Please review comments of #18 (comment)

README.md Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
composer.json Show resolved Hide resolved
src/CILogViewer.php Outdated Show resolved Hide resolved
src/CILogViewer.php Show resolved Hide resolved
src/CILogViewer.php Outdated Show resolved Hide resolved
@@ -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));
Copy link
Owner

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

Copy link
Contributor Author

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.

src/CILogViewer.php Show resolved Hide resolved
src/CILogViewer.php Outdated Show resolved Hide resolved
@SeunMatt
Copy link
Owner

SeunMatt commented Oct 8, 2022

Kudos @savioret please let me know when I can review again, thanks.

@savioret
Copy link
Contributor Author

savioret commented Oct 8, 2022

I've finished. It's all yours.

@savioret
Copy link
Contributor Author

savioret commented Oct 8, 2022

Sorry just found an error in the customization of viewName, it was wrongly named viewPath, it's fixed.

@SeunMatt SeunMatt merged commit 91aad6c into SeunMatt:development Oct 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants