#1370 불필요한 PHP4용 코드 삭제

XE 최소 PHP 버전이 5.3임에도 남아있는 PHP5 미만용 코드를 삭제하였습니다.
This commit is contained in:
YJSoft 2015-04-08 13:44:52 +09:00
parent 231f133f51
commit 1af4c95216
2 changed files with 1 additions and 13 deletions

View file

@ -314,11 +314,6 @@ class DB
{
$db_type = $supported_list[$i];
if(version_compare(phpversion(), '5.0') < 0 && preg_match('/pdo/i', $db_type))
{
continue;
}
$class_name = sprintf("DB%s%s", strtoupper(substr($db_type, 0, 1)), strtolower(substr($db_type, 1)));
$class_file = sprintf(_XE_PATH_ . "classes/db/%s.class.php", $class_name);
if(!file_exists($class_file))

View file

@ -1,14 +1,7 @@
<?php
/* Copyright (C) NAVER <http://www.navercorp.com> */
if(version_compare(PHP_VERSION, '5.0.0', '>='))
{
require_once _XE_PATH_ . "libs/phpmailer/phpmailer.php";
}
else
{
require_once _XE_PATH_ . "libs/phpmailer/class.phpmailer.php";
}
require_once _XE_PATH_ . "libs/phpmailer/phpmailer.php";
/**
* Mailing class for XpressEngine