diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-14 09:54:15 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-14 09:54:15 +0100 |
| commit | 974ca7dd01b899652a5ddee850ab3ec2a483527e (patch) | |
| tree | 55af98860bfd7db4d9885975ed77088369430677 /liberty_plugins | |
| parent | f1e7aea6a7a18869a96052da37a642e93f89d01a (diff) | |
| download | languages-974ca7dd01b899652a5ddee850ab3ec2a483527e.tar.gz languages-974ca7dd01b899652a5ddee850ab3ec2a483527e.tar.bz2 languages-974ca7dd01b899652a5ddee850ab3ec2a483527e.zip | |
php-cs-fixer tidies to php8.5 standards
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'liberty_plugins')
| -rwxr-xr-x | liberty_plugins/data.tr.php | 4 | ||||
| -rwxr-xr-x | liberty_plugins/data.translated.php | 19 |
2 files changed, 12 insertions, 11 deletions
diff --git a/liberty_plugins/data.tr.php b/liberty_plugins/data.tr.php index 97cb54d..51bf286 100755 --- a/liberty_plugins/data.tr.php +++ b/liberty_plugins/data.tr.php @@ -10,8 +10,8 @@ */ namespace Bitweaver\Liberty; + use Bitweaver\KernelTools; -use Bitweaver\Liberty\LibertyContent; /** * Setup Code @@ -28,7 +28,7 @@ $pluginParams = [ 'description' => KernelTools::tra( "Use this plugin to mark strings for translation. You should only use this for common short strings, and not entire pages." ), 'help_function' => 'data_tr_help', 'syntax' => "", - 'plugin_type' => DATA_PLUGIN + 'plugin_type' => DATA_PLUGIN, ]; $gLibertySystem->registerPlugin( PLUGIN_GUID_DATATR, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATATR ); diff --git a/liberty_plugins/data.translated.php b/liberty_plugins/data.translated.php index acbc351..4ad6190 100755 --- a/liberty_plugins/data.translated.php +++ b/liberty_plugins/data.translated.php @@ -5,6 +5,7 @@ * @subpackage plugins_data */ namespace Bitweaver\Liberty; + use Bitweaver\KernelTools; // +----------------------------------------------------------------------+ @@ -39,7 +40,7 @@ $pluginParams = [ 'description' => KernelTools::tra("This plugin is used to create a link to a page that contains a translation. The link can be shown as an Icon for the country or as an abreviation for the language."), 'help_function' => 'data_translated_help', 'syntax' => "{TRANSLATED page= lang= flag= }", - 'plugin_type' => DATA_PLUGIN + 'plugin_type' => DATA_PLUGIN, ]; $gLibertySystem->registerPlugin( PLUGIN_GUID_DATATRANSLATED, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATATRANSLATED ); @@ -59,16 +60,16 @@ function data_translated_help() { // Load Function function data_translated($data, $params) { - extract ($params, EXTR_SKIP); - if (!isset($page) ) { // A Manditory Parameter is missing - $ret = 'The __page__ parameter was missing from the __~np~{TRANSLATED}~/np~__ plugin.'; + extract ($params, EXTR_SKIP); + if (!isset($page) ) { // A Manditory Parameter is missing + $ret = 'The __page__ parameter was missing from the __~np~{TRANSLATED}~/np~__ plugin.'; $ret.= data_translated_help(); - return $ret; + return $ret; } - if (!isset($lang) ) { // A Manditory Parameter is missing - $ret = 'The __lang__ parameter was missing from the __~np~{TRANSLATED}~/np~__ plugin.'; + if (!isset($lang) ) { // A Manditory Parameter is missing + $ret = 'The __lang__ parameter was missing from the __~np~{TRANSLATED}~/np~__ plugin.'; $ret.= data_translated_help(); - return $ret; + return $ret; } $img = ''; @@ -80,7 +81,7 @@ function data_translated($data, $params) { } if (isset($flag)) { if (in_array($flag,$avflags)) { - $file = USERS_PKG_URL . "icons/flags/" . $flag . ".gif"; + $file = USERS_PKG_URL . "icons/flags/" . $flag . ".gif"; $img = "<img src='$file' width='18' height='13' vspace='0' hspace='3' alt='($lang)' align='baseline' />"; } } else { |
