formatting
This commit is contained in:
+7
-10
@@ -1,11 +1,11 @@
|
||||
<?php
|
||||
/*
|
||||
Plugin Name: PostgreSQL for WordPress (PG4WP)
|
||||
Plugin URI: http://www.hawkix.net
|
||||
Description: PG4WP is a special 'plugin' enabling WordPress to use a PostgreSQL database.
|
||||
Version: 1.3.1+
|
||||
Author: Hawk__
|
||||
Author URI: http://www.hawkix.net
|
||||
Plugin URI: https://github.com/PostgreSQL-For-Wordpress/postgresql-for-wordpress
|
||||
Description: PG4WP is a special plugin enabling WordPress to use a PostgreSQL database.
|
||||
Version: v2.2
|
||||
Author: PostgreSQL-For-Wordpress
|
||||
Author URI: https://github.com/PostgreSQL-For-Wordpress
|
||||
License: GPLv2 or newer.
|
||||
*/
|
||||
|
||||
@@ -47,14 +47,11 @@ if(!defined('PG4WP_ROOT')) {
|
||||
}
|
||||
|
||||
// Logs are put in the pg4wp directory
|
||||
if (!defined('PG4WP_LOG'))
|
||||
{
|
||||
if (!defined('PG4WP_LOG')) {
|
||||
define('PG4WP_LOG', PG4WP_ROOT . '/logs/');
|
||||
}
|
||||
// Check if the logs directory is needed and exists or create it if possible
|
||||
if((PG4WP_DEBUG || PG4WP_LOG_ERRORS) &&
|
||||
!file_exists(PG4WP_LOG) &&
|
||||
is_writable(dirname(PG4WP_LOG))) {
|
||||
if((PG4WP_DEBUG || PG4WP_LOG_ERRORS) && !file_exists(PG4WP_LOG) && is_writable(dirname(PG4WP_LOG))) {
|
||||
mkdir(PG4WP_LOG);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user