Changeset 32705
- Timestamp:
- Jan 6, 2022, 9:31:07 PM (2 years ago)
- Location:
- extensions/de_activate_all_languages
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/de_activate_all_languages/initadmin.php
r32389 r32705 43 43 } 44 44 45 function plugDalPT($content , &$smarty){45 function plugDalPT($content){ 46 46 global $template; 47 47 $search = '#</h2> … … 94 94 foreach ($languages as $key => $language){ 95 95 foreach ($language as $key => $lang){ 96 //var_dump($lang);97 96 if (isset($lang['code'])){ 98 97 $query = 'INSERT INTO '.LANGUAGES_TABLE.'(id, version, name) VALUES(\''.$lang['code'].'\',\''.$lang['version'].'\',\''.$lang['name'].'\');'; … … 100 99 $test = pwg_query($q); 101 100 $row = pwg_db_fetch_assoc($test); 102 if ( count($row) == 0) {101 if (is_null($row)) { 103 102 $query = 'INSERT INTO '.LANGUAGES_TABLE.'(id, version, name) VALUES(\''.$lang['code'].'\',\''.$lang['version'].'\',\''.$lang['name'].'\');'; 104 103 pwg_query($query); -
extensions/de_activate_all_languages/language/en_UK/plugin.lang.php
r32389 r32705 3 3 // | de_activate all language plugin for piwigo by TEMMII | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2010-202 1ddtddt http://temmii.com/piwigo/ |5 // | Copyright(C) 2010-2022 ddtddt http://temmii.com/piwigo/ | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | -
extensions/de_activate_all_languages/language/fr_FR/plugin.lang.php
r32389 r32705 3 3 // | de_activate all language plugin for piwigo by TEMMII | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2010-202 1ddtddt http://temmii.com/piwigo/ |5 // | Copyright(C) 2010-2022 ddtddt http://temmii.com/piwigo/ | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | -
extensions/de_activate_all_languages/main.inc.php
r32389 r32705 12 12 // | de_activate all language plugin for piwigo by TEMMII | 13 13 // +-----------------------------------------------------------------------+ 14 // | Copyright(C) 2010-202 1ddtddt http://temmii.com/piwigo/ |14 // | Copyright(C) 2010-2022 ddtddt http://temmii.com/piwigo/ | 15 15 // +-----------------------------------------------------------------------+ 16 16 // | This program is free software; you can redistribute it and/or modify |
Note: See TracChangeset
for help on using the changeset viewer.