Version 4.2.0
This commit is contained in:
1 parent
0dc2aee5ed
commit
96997ddd8e
2074 files changed
+125454
-55780
No files matched your search
+11
-6
@@ -1,12 +1,11 @@
|
||||
<?php
|
||||
/**
|
||||
* @brief Language Class
|
||||
* @author <a href='http://www.invisionpower.com'>Invision Power Services, Inc.</a>
|
||||
* @copyright (c) 2001 - 2016 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/legal/standards/
|
||||
* @package IPS Community Suite
|
||||
* @author <a href='https://www.invisioncommunity.com'>Invision Power Services, Inc.</a>
|
||||
* @copyright (c) Invision Power Services, Inc.
|
||||
* @license https://www.invisioncommunity.com/legal/standards/
|
||||
* @package Invision Community
|
||||
* @since 18 Feb 2013
|
||||
* @version SVN_VERSION_NUMBER
|
||||
*/
|
||||
|
||||
namespace IPS;
|
||||
@@ -1706,10 +1705,16 @@ class _Lang extends \IPS\Node\Model
|
||||
try
|
||||
{
|
||||
$replacement = vsprintf( $replacement, $sprintf );
|
||||
|
||||
/* Without IN_DEV we suppress warnings, so we need to verify if the return was FALSE */
|
||||
if( $replacement === FALSE )
|
||||
{
|
||||
throw new \ErrorException;
|
||||
}
|
||||
}
|
||||
catch ( \ErrorException $e )
|
||||
{
|
||||
// If there's the wrong number of parameters because the tarnslator's done it wrong, we can just display the string
|
||||
// If there's the wrong number of parameters because the translator's done it wrong, we can just use empty strings for replacements
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
<?php
|
||||
/**
|
||||
* @brief Setup Language Class
|
||||
* @author <a href='http://www.invisionpower.com'>Invision Power Services, Inc.</a>
|
||||
* @copyright (c) 2001 - 2016 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/legal/standards/
|
||||
* @package IPS Community Suite
|
||||
* @since 18 Feb 2013
|
||||
* @version SVN_VERSION_NUMBER
|
||||
* @author <a href='https://www.invisioncommunity.com'>Invision Power Services, Inc.</a>
|
||||
* @copyright (c) Invision Power Services, Inc.
|
||||
* @license https://www.invisioncommunity.com/legal/standards/
|
||||
* @package Invision Community
|
||||
* @since 18 Feb 2013␍
|
||||
*/
|
||||
|
||||
namespace IPS\Lang\Setup;
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
<?php
|
||||
/**
|
||||
* @brief Upgrader Language Class
|
||||
* @author <a href='http://www.invisionpower.com'>Invision Power Services, Inc.</a>
|
||||
* @copyright (c) 2001 - 2016 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/legal/standards/
|
||||
* @package IPS Community Suite
|
||||
* @since 13 Feb 2015
|
||||
* @version SVN_VERSION_NUMBER
|
||||
* @author <a href='https://www.invisioncommunity.com'>Invision Power Services, Inc.</a>
|
||||
* @copyright (c) Invision Power Services, Inc.
|
||||
* @license https://www.invisioncommunity.com/legal/standards/
|
||||
* @package Invision Community
|
||||
* @since 13 Feb 2015␍
|
||||
*/
|
||||
|
||||
namespace IPS\Lang\Upgrade;
|
||||
|
||||
Reference in new issue
Block a user