Skip to content
This repository has been archived by the owner on Jan 1, 2021. It is now read-only.

Commit

Permalink
v2.0.0-RC1
Browse files Browse the repository at this point in the history
  • Loading branch information
ErnadoO committed Apr 27, 2018
1 parent 1f351cc commit 46d8f8a
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 37 deletions.
27 changes: 1 addition & 26 deletions acp/main_module.php
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ protected function qte_attr_select($attr_id)

protected function display_version_warning()
{
global $config, $user, $template;
global $config, $user;

$version = \ernadoo\qte\ext::VERSION;

Expand All @@ -497,31 +497,6 @@ protected function display_version_warning()
{
trigger_error($user->lang('QTE_MIGRATIONS_OUTDATED', $config['qte_version'], $version), E_USER_ERROR);
}

// Display a warning for unstable versions
if (stripos($version, '-dev') !== false)
{
$template->assign_vars(array(
'S_VERSION_UNSTABLE' => true,
'S_VERSION_DEV' => true,
'VERSION_WARNING' => $user->lang('QTE_DEV_WARNING', $version) . '<br />' . $user->lang['QTE_DEV_WARNING_DEV'],
));
}
else if (stripos($version, '-a') !== false)
{
$template->assign_vars(array(
'S_VERSION_UNSTABLE' => true,
'S_VERSION_DEV' => true,
'VERSION_WARNING' => $user->lang('QTE_DEV_WARNING', $version),
));
}
else if (stripos($version, '-b') !== false)
{
$template->assign_vars(array(
'S_VERSION_UNSTABLE' => true,
'VERSION_WARNING' => $user->lang('QTE_BETA_WARNING', $version),
));
}

This comment has been minimized.

Copy link
@Zoddo

Zoddo Apr 27, 2018

Collaborator

Yeah, a RC! 😄

Maybe this code (and the related language keys) can be kept for future unstable releases?

This comment has been minimized.

Copy link
@ErnadoO

ErnadoO Apr 27, 2018

Author Owner

There will be no more unstable versions ;)

}

/**
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type" : "phpbb-extension",
"description" : "Quick Title Edition",
"homepage" : "https://github.com/ErnadoO/qte",
"version" : "2.0.0-a2",
"version" : "2.0.0-RC1",
"keywords" : [
"phpbb",
"extension",
Expand Down
2 changes: 1 addition & 1 deletion ext.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

class ext extends \phpbb\extension\base
{
const VERSION = '2.0.0-a2';
const VERSION = '2.0.0-RC1';

public function is_enableable()
{
Expand Down
3 changes: 0 additions & 3 deletions language/en/attributes_acp.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,6 @@
'QTE_REMOVED' => 'The selected attribute has been deleted.',

'QTE_MIGRATIONS_OUTDATED' => 'Your database is not up to date.<br />Please disable and re-enable the extension in order to update it.<br /><br />Database version: %1$s<br />Files version: %2$s',
'QTE_DEV_WARNING' => 'You currently use a development version of the extension (%s).<br />You shouldn’t use those versions on a production environment.<br />Those versions can contain many unfinished features and security issues or make unstable your board.',
'QTE_DEV_WARNING_DEV' => 'We could not be liable for eventual data losses or corruptions.',
'QTE_BETA_WARNING' => 'You currently use an unstable version of the extension (%s).<br />The unstable versions can contain many errors, security issues or make unstable your board.<br />It is highly recommended you don’t use those versions on a production environment.',
));

// forums
Expand Down
3 changes: 0 additions & 3 deletions language/fr/attributes_acp.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,6 @@
'QTE_REMOVED' => 'L’attribut sélectionné a été supprimé.',

'QTE_MIGRATIONS_OUTDATED' => 'Votre base de données n’est pas à jour.<br />Désactivez et réactivez l’extension afin de la mettre à jour.<br /><br />Version de la base de données : %1$s<br />Version des fichiers : %2$s',
'QTE_DEV_WARNING' => 'Vous utilisez actuellement une version de développement de l’extension (%s).<br />Vous ne devriez pas utiliser ces versions sur un forum en production.<br />Ces versions peuvent contenir des fonctionnalités non-terminées et des failles de sécurité ou encore rendre votre forum instable voire inutilisable.',
'QTE_DEV_WARNING_DEV' => 'Nous ne saurions être tenus pour responsables d’éventuelles pertes ou corruptions de données.',
'QTE_BETA_WARNING' => 'Vous utilisez actuellement une version non-stable de l’extension (%s).<br />Les versions non-stables sont susceptibles de comporter des erreurs, des failles de sécurité ou rendre instable votre forum.<br />Il est donc fortement recommandé de ne pas utiliser ces versions sur un forum en production.',
));

// forums
Expand Down
3 changes: 0 additions & 3 deletions language/pt_br/attributes_acp.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,6 @@
'QTE_REMOVED' => 'O atributo selecionado foi deletado.',

'QTE_MIGRATIONS_OUTDATED' => 'Seu banco de dados não está atualizado.<br /> Desative e reative a extensão para atualizá-lo.<br /><br />Versão do banco de dados: %1$s<br />Versão dos arquivos: %2$s',
'QTE_DEV_WARNING' => 'Você usa atualmente uma versão de desenvolvimento da extensão (%s).<br /> Você não deve usar essas versões em um ambiente de produção.<br /> Essas versões podem conter muitos recursos e problemas de segurança inacabados ou tornam instável seu fórum.',
'QTE_DEV_WARNING_DEV' => 'Não seremos responsáveis ​​por eventuais perdas de dados ou corrupções.',
'QTE_BETA_WARNING' => 'Você usa atualmente uma versão instável da extensão (%s).<br /> As versões instáveis ​​podem conter muitos erros, problemas de segurança ou tornar instável seu fórum.<br /> É altamente recomendável que você não use essas versões em um ambiente de produção.',
));

// forums
Expand Down
30 changes: 30 additions & 0 deletions migrations/v200/rc1.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php
/**
*
* @package Quick Title Edition Extension
* @copyright (c) 2015 ABDev
* @copyright (c) 2015 PastisD
* @copyright (c) 2015 Geolim4 <http://geolim4.com>
* @copyright (c) 2015 Zoddo <[email protected]>
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
*/

namespace ernadoo\qte\migrations\v200;

class rc1 extends \phpbb\db\migration\migration
{
static public function depends_on()
{
return array(
'\ernadoo\qte\migrations\v200\alpha2',
);
}

public function update_data()
{
return array(
array('config.update', array('qte_version', '2.0.0-RC1')),
);
}
}

0 comments on commit 46d8f8a

Please sign in to comment.