Version 4.6.0

This commit is contained in:
Neo committed 2025-12-19 05:55:31 -08:00
1 parent f79dcf067a
commit 517a5e1f70
2036 files changed
+110041 -26162

No files matched your search

@@ -121,7 +121,7 @@ class _languages extends \IPS\Node\Controller
*
* @return void
*/
protected function addWord(): void
protected function addWord()
{
$form = new \IPS\Helpers\Form( 'wordForm', 'save', NULL, array( 'data-role' => 'wordForm' ) );
\IPS\Lang::wordForm( $form );
@@ -150,7 +150,7 @@ class _languages extends \IPS\Node\Controller
*
* @return void
*/
protected function deleteWord(): void
protected function deleteWord()
{
\IPS\Session::i()->csrfCheck();
@@ -336,7 +336,7 @@ class _languages extends \IPS\Node\Controller
if ( !\IPS\Request::i()->status )
{
$count = \IPS\Db::i()->select( 'count(*)', 'core_members', array( 'language=?', $language->_id ) )->first();
if ( $count['count'] )
if ( $count )
{
if ( \IPS\Request::i()->isAjax() )
{
@@ -851,7 +851,7 @@ class _languages extends \IPS\Node\Controller
/* Finish */
$xml->endDocument();
\IPS\Output::i()->sendOutput( $xml->outputMemory(), 200, 'application/xml', array( 'Content-Disposition' => \IPS\Output::getContentDisposition( 'attachment', $lang->title . '.xml' ) ), FALSE, FALSE, FALSE );
\IPS\Output::i()->sendOutput( $xml->outputMemory(), 200, 'application/xml', array( 'Content-Disposition' => \IPS\Output::getContentDisposition( 'attachment', $lang->title . " {$lang->version}.xml" ) ), FALSE, FALSE, FALSE );
}
/* Display */
@@ -920,8 +920,7 @@ class _languages extends \IPS\Node\Controller
function( $data )
{
/* Open XML file */
$xml = new \IPS\Xml\XMLReader;
$xml->open( \IPS\Request::i()->file );
$xml = \IPS\Xml\XMLReader::safeOpen( \IPS\Request::i()->file );
$xml->read();
/* If this is the first batch, create the language record */
@@ -1160,7 +1159,7 @@ class _languages extends \IPS\Node\Controller
{
$form = new \IPS\Helpers\Form;
$form->hiddenvalues['id'] = \IPS\Request::i()->id;
$form->add( new \IPS\Helpers\Form\Select( 'member_reset_where', '*', TRUE, array( 'options' => \IPS\Member\Group::groups( TRUE, FALSE ), 'multiple' => TRUE, 'parse' => 'normal', 'unlimited' => '*', 'unlimitedLang' => 'all' ) ) );
$form->add( new \IPS\Helpers\Form\CheckboxSet( 'member_reset_where', '*', TRUE, array( 'options' => \IPS\Member\Group::groups( TRUE, FALSE ), 'multiple' => TRUE, 'parse' => 'normal', 'unlimited' => '*', 'unlimitedLang' => 'all', 'impliedUnlimited' => TRUE ) ) );
if ( $values = $form->values() )
{