Skip to content
This repository has been archived by the owner on Mar 15, 2022. It is now read-only.

Commit

Permalink
close #5
Browse files Browse the repository at this point in the history
  • Loading branch information
fumikito committed Mar 19, 2012
1 parent 4a6aa3a commit c829d1b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions literally-wordpress.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ public function admin_hooks(){
public function validate(){
//Check directory's existance and if not, try to careate
if(!is_dir($this->option['dir']) || !file_exists($this->option['dir'])){
if(!mkdir($this->option['dir'], true)){
if(!@mkdir($this->option['dir'], true)){
$this->initialized = false;
$this->message[] = sprintf($this->_('Can\'t make directory. Check parmissin of "%s"'), dirname($this->option['dir']));
$this->error = true;
Expand Down Expand Up @@ -423,7 +423,7 @@ public function table_create(){
global $wpdb;
//バージョンの確認
if($this->version > $this->option['db_version']){
$wpdb->show_errors();
//$wpdb->show_errors();
//Change Field name because desc is
$row = null;
foreach($wpdb->get_results("DESCRIBE {$this->files}") as $field){
Expand Down Expand Up @@ -1794,7 +1794,7 @@ public function manage_actions(){
break;
}
}
if(is_page($this->option['mypage'])){
if($this->option['mypage'] && is_page($this->option['mypage'])){
if(!is_user_logged_in()){
auth_redirect();
die();
Expand Down

0 comments on commit c829d1b

Please sign in to comment.