From: jeroendedauw Date: Mon, 28 Jan 2013 15:19:24 +0000 (+0100) Subject: Added deprecation comment to constant that when used throws deprecation exception X-Git-Tag: 1.31.0-rc.0~20737^2 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=501112da1b2b3566c05d633e3e2598b554659de9;p=lhc%2Fweb%2Fwiklou.git Added deprecation comment to constant that when used throws deprecation exception Change-Id: I4513ccad399d4367c76d823f01f33c52ab9a8bbc --- diff --git a/includes/Defines.php b/includes/Defines.php index 882f318245..661acc3d1d 100644 --- a/includes/Defines.php +++ b/includes/Defines.php @@ -54,12 +54,12 @@ define( 'DBO_COMPRESS', 512 ); */ define( 'DB_SLAVE', -1 ); # Read from the slave (or only server) define( 'DB_MASTER', -2 ); # Write to master (or only server) -define( 'DB_LAST', -3 ); # Whatever database was used last /**@}*/ # Obsolete aliases define( 'DB_READ', -1 ); define( 'DB_WRITE', -2 ); +define( 'DB_LAST', -3 ); # deprecated since 2008, usage throws exception /**@{