This commit is contained in:
Garvin Hicking 2013-07-23 09:34:12 +02:00
parent 731b044d50
commit e72aa19280
2 changed files with 9 additions and 0 deletions

View File

@ -17,6 +17,9 @@ Version 2.0 ()
Version 1.7.1 () 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) * 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 * Upgrader will now remove/delete the browsercompatibility plugin

View File

@ -2,6 +2,12 @@
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team) # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
# All rights reserved. See LICENSE file for licensing details # 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")) { if (@include(S9Y_INCLUDE_PATH . "include/db/{$serendipity['dbType']}.inc.php")) {
@define('S9Y_DB_INCLUDED', TRUE); @define('S9Y_DB_INCLUDED', TRUE);
} }