Skip to content

Commit

Permalink
PDOがインストールされてなかったときに真っ白になる問題を修正。
Browse files Browse the repository at this point in the history
  • Loading branch information
logue committed May 16, 2016
1 parent 87af7ac commit 0019755
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wiki-common/lib/init.php
Expand Up @@ -48,6 +48,10 @@

define('REMOTE_ADDR', isset($_SERVER['HTTP_CF_CONNECTING_IP']) ? $_SERVER['HTTP_CF_CONNECTING_IP'] : $_SERVER['REMOTE_ADDR']);

if (class_exists('PDO')){
die('PukiWiki Adv. requires PDO.');
}

// Load Bad-behavior
if (file_exists(VENDOR_DIR . 'bad-behavior' . DIRECTORY_SEPARATOR . 'bad-behavior-sqlite.php') ){
require( VENDOR_DIR . 'bad-behavior' . DIRECTORY_SEPARATOR . 'bad-behavior-sqlite.php');
Expand Down

0 comments on commit 0019755

Please sign in to comment.