diff options
author | Hanne Moa <hanne.moa@uninett.no> | 2016-07-13 14:33:13 +0200 |
---|---|---|
committer | Hanne Moa <hanne.moa@uninett.no> | 2016-07-13 14:33:13 +0200 |
commit | 2428e8f45bad5b704f2f7e289d0ed7ffd39c83e5 (patch) | |
tree | ecbef296a5e3db12a135bcbe9936c3cd6b8f792e /lib | |
parent | 4287d3aaf1f6b33be020963d9a1ab5e254dabb22 (diff) | |
parent | 8f81c53409a6a32d5b3eba67745f3e864de29398 (diff) | |
download | simplesamlphp-2428e8f45bad5b704f2f7e289d0ed7ffd39c83e5.zip simplesamlphp-2428e8f45bad5b704f2f7e289d0ed7ffd39c83e5.tar.gz simplesamlphp-2428e8f45bad5b704f2f7e289d0ed7ffd39c83e5.tar.bz2 |
Merge branch 'master' of github.com:simplesamlphp/simplesamlphp
YA Merge
Diffstat (limited to 'lib')
-rw-r--r-- | lib/SimpleSAML/Locale/Translate.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/SimpleSAML/Locale/Translate.php b/lib/SimpleSAML/Locale/Translate.php index ebbac32..dba41a8 100644 --- a/lib/SimpleSAML/Locale/Translate.php +++ b/lib/SimpleSAML/Locale/Translate.php @@ -56,7 +56,7 @@ class Translate // for backwards compatibility - print warning $backtrace = debug_backtrace(); $where = $backtrace[0]['file'].':'.$backtrace[0]['line']; - \SimpleSAML_Logger::warning( + \SimpleSAML\Logger::warning( 'Deprecated use of new SimpleSAML\Locale\Translate(...) at '.$where. '. The last parameter is now a dictionary name, which should not end in ".php".' ); @@ -96,7 +96,7 @@ class Translate if ($sepPos !== false) { $module = substr($name, 0, $sepPos); $fileName = substr($name, $sepPos + 1); - $dictDir = \SimpleSAML_Module::getModuleDir($module).'/dictionaries/'; + $dictDir = \SimpleSAML\Module::getModuleDir($module).'/dictionaries/'; } else { $dictDir = $this->configuration->getPathValue('dictionarydir', 'dictionaries/'); $fileName = $name; @@ -255,14 +255,14 @@ class Translate // old style call to t(...). Print warning to log $backtrace = debug_backtrace(); $where = $backtrace[0]['file'].':'.$backtrace[0]['line']; - \SimpleSAML_Logger::warning( + \SimpleSAML\Logger::warning( 'Deprecated use of SimpleSAML_Template::t(...) at '.$where. '. Please update the code to use the new style of parameters.' ); // for backwards compatibility if (!$replacements && $this->getTag($tag) === null) { - \SimpleSAML_Logger::warning( + \SimpleSAML\Logger::warning( 'Code which uses $fallbackdefault === FALSE should be updated to use the getTag() method instead.' ); return null; @@ -277,7 +277,7 @@ class Translate $tagData = $this->getTag($tag); if ($tagData === null) { // tag not found - \SimpleSAML_Logger::info('Template: Looking up ['.$tag.']: not translated at all.'); + \SimpleSAML\Logger::info('Template: Looking up ['.$tag.']: not translated at all.'); return $this->getStringNotTranslated($tag, $fallbackdefault); } } @@ -332,7 +332,7 @@ class Translate throw new \Exception("Inline translation should be string or array. Is ".gettype($translation)." now!"); } - \SimpleSAML_Logger::debug('Template: Adding inline language translation for tag ['.$tag.']'); + \SimpleSAML\Logger::debug('Template: Adding inline language translation for tag ['.$tag.']'); $this->langtext[$tag] = $translation; } @@ -355,7 +355,7 @@ class Translate } $lang = $this->readDictionaryFile($filebase.$file); - \SimpleSAML_Logger::debug('Template: Merging language array. Loading ['.$file.']'); + \SimpleSAML\Logger::debug('Template: Merging language array. Loading ['.$file.']'); $this->langtext = array_merge($this->langtext, $lang); } @@ -376,7 +376,7 @@ class Translate $lang = json_decode($fileContent, true); if (empty($lang)) { - \SimpleSAML_Logger::error('Invalid dictionary definition file ['.$definitionFile.']'); + \SimpleSAML\Logger::error('Invalid dictionary definition file ['.$definitionFile.']'); return array(); } @@ -426,7 +426,7 @@ class Translate { assert('is_string($filename)'); - \SimpleSAML_Logger::debug('Template: Reading ['.$filename.']'); + \SimpleSAML\Logger::debug('Template: Reading ['.$filename.']'); $jsonFile = $filename.'.definition.json'; if (file_exists($jsonFile)) { @@ -438,7 +438,7 @@ class Translate return $this->readDictionaryPHP($filename); } - \SimpleSAML_Logger::error( + \SimpleSAML\Logger::error( $_SERVER['PHP_SELF'].' - Template: Could not find dictionary file at ['.$filename.']' ); return array(); |