Permalink
Browse files

PDOがインストールされてなかったときに真っ白になる問題を修正。

  • Loading branch information...
1 parent 87af7ac commit 00197554caa9e1f43f163fdf5347736248331370 @logue committed May 16, 2016
Showing with 4 additions and 0 deletions.
  1. +4 −0 wiki-common/lib/init.php
@@ -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');

0 comments on commit 0019755

Please sign in to comment.