Skip to content

Commit

Permalink
Corrects underpin autoloader
Browse files Browse the repository at this point in the history
  • Loading branch information
alexstandiford committed May 12, 2021
1 parent 5a1f919 commit b757a95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/abstracts/Event_Type.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ public function writer() {
);
}

if ( ! is_subclass_of( $this->writer_class, 'Underpin\Abstracts\Writer' ) ) {
if ( ! is_subclass_of( $this->writer_class, 'Underpin_Logger\Abstracts\Writer' ) ) {
return new WP_Error(
'writer_class_invalid',
'The writer class must be extend the Writer class.',
Expand Down
4 changes: 2 additions & 2 deletions lib/factories/Basic_Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
namespace Underpin_Logger\Factories;


use Underpin\Abstracts\Event_Type;
use Underpin_Logger\Abstracts\Event_Type;
use Underpin_Logger\Abstracts\Writer;
use WP_Error;
use function Underpin\underpin;
Expand Down Expand Up @@ -48,7 +48,7 @@ public function __construct( Event_Type $event_type ) {
// If the log directory does not exist, create it and set permissions.
if ( ! is_writeable( $this->log_dir ) ) {
@mkdir( $this->log_dir );
@chmod( $this->log_dir, 0664 );
@chmod( $this->log_dir, 0764 );
}

parent::__construct( $event_type );
Expand Down

0 comments on commit b757a95

Please sign in to comment.