upport
This commit is contained in:
parent
731b044d50
commit
e72aa19280
@ -17,6 +17,9 @@ Version 2.0 ()
|
||||
Version 1.7.1 ()
|
||||
------------------------------------------------------------------------
|
||||
|
||||
* Serendipity will switch to mysqli if PHP >= 5.5 is used (mysql
|
||||
is deprecated)
|
||||
|
||||
* Smarty upgrade to 3.1.14 (read changeLog and the README for API changes since Smarty 2)
|
||||
|
||||
* Upgrader will now remove/delete the browsercompatibility plugin
|
||||
|
@ -2,6 +2,12 @@
|
||||
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
||||
# All rights reserved. See LICENSE file for licensing details
|
||||
|
||||
// PHP 5.5 compat, no longer use deprecated mysql
|
||||
if ($serendipity['dbType'] == 'mysql' && (version_compare(PHP_VERSION, '5.5.0' >= 0) || !function_exits('mysql_connect'))) {
|
||||
$serendipity['dbType'] = 'mysqli';
|
||||
}
|
||||
|
||||
|
||||
if (@include(S9Y_INCLUDE_PATH . "include/db/{$serendipity['dbType']}.inc.php")) {
|
||||
@define('S9Y_DB_INCLUDED', TRUE);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user