summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2013-12-18 14:16:19 +0000
committerGreg Roach <fisharebest@gmail.com>2013-12-18 14:16:19 +0000
commit9c7e5fc60bbaea1a998d0d07d8af0a3eeff07838 (patch)
tree34c2386a6768182f14ff4f51cac8103cb22a1709
parent535374ca9f9c8cbbd10b8e9e04855be9cf1b2fad (diff)
downloadwebtrees-9c7e5fc60bbaea1a998d0d07d8af0a3eeff07838.tar.gz
webtrees-9c7e5fc60bbaea1a998d0d07d8af0a3eeff07838.tar.bz2
webtrees-9c7e5fc60bbaea1a998d0d07d8af0a3eeff07838.zip
Fix: custom modules rely on deprecated Zend_Registry feature
-rw-r--r--library/WT/I18N.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/library/WT/I18N.php b/library/WT/I18N.php
index 26bf4aa74a..aeb7a24b35 100644
--- a/library/WT/I18N.php
+++ b/library/WT/I18N.php
@@ -132,6 +132,9 @@ class WT_I18N {
// Load the translation file
self::$translation_adapter = new Zend_Translate('gettext', WT_ROOT.'language/'.$locale.'.mo', $locale);
+ // Deprecated - some custom modules use this to add translations
+ Zend_Registry::set('Zend_Translate', self::$translation_adapter);
+
// Load any local user translations
if (is_dir(WT_DATA_DIR.'language')) {
if (file_exists(WT_DATA_DIR.'language/'.$locale.'.mo')) {