summaryrefslogtreecommitdiff
path: root/framework/I18N/core/MessageSource.php
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-04-12 13:57:50 +0200
committeremkael <emkael@tlen.pl>2016-04-12 14:45:49 +0200
commitde868b371166a367b7e66307b6f90aee0da2bb8d (patch)
tree6d2fbda87ae5c162731e6904a4a25772b3aef903 /framework/I18N/core/MessageSource.php
parent52d7da0d50f455f377a7412e4e73726e3cc51155 (diff)
Removing MySQL I18N MessageSource, as mysql_* functions are gone from PHP7
Diffstat (limited to 'framework/I18N/core/MessageSource.php')
-rw-r--r--framework/I18N/core/MessageSource.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/framework/I18N/core/MessageSource.php b/framework/I18N/core/MessageSource.php
index 7d5d6ed3..f0357860 100644
--- a/framework/I18N/core/MessageSource.php
+++ b/framework/I18N/core/MessageSource.php
@@ -37,7 +37,6 @@ require_once(dirname(__FILE__).'/MessageCache.php');
* # gettext -- Translated messages are stored in the gettext format.
* # Database -- Use an existing TDbConnection to store the messages.
* # SQLite -- (Deprecated) Store the translation messages in a SQLite database.
- * # MySQL -- (Deprecated) Using a MySQL database to store the messages.
*
* A custom message source can be instantiated by specifying the filename
* parameter to point to the custom class file. E.g.
@@ -114,8 +113,8 @@ abstract class MessageSource implements IMessageSource
* For 'gettext' and 'XLIFF', 'source' should point to the directory
* where the messages are stored.
* For 'Database', 'source' must be a valid connection id.
- * If one of the deprecated types 'MySQL' or 'SQLite' is used,
- * 'source' must contain a valid DSN.
+ * If a deprecated 'SQLite' type is used, 'source' must contain
+ * a valid DSN.
*
* Custom message source are possible by supplying the a filename parameter
* in the factory method.
@@ -128,8 +127,8 @@ abstract class MessageSource implements IMessageSource
*/
static function &factory($type, $source='.', $filename='')
{
- $types = array('XLIFF','gettext','Database','MySQL','SQLite');
-
+ $types = array('XLIFF','gettext','Database','SQLite');
+
if(empty($filename) && !in_array($type, $types))
throw new Exception('Invalid type "'.$type.'", valid types are '.
implode(', ', $types));