Skip to content

Commit

Permalink
add lacking of trans
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaomlove committed Jun 18, 2023
1 parent 1a35db1 commit e1a7874
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion include/constants.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.8.4');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2023-06-16');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2023-06-18');
defined('IN_TRACKER') || define('IN_TRACKER', false);
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
Expand Down
2 changes: 1 addition & 1 deletion include/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ function formatSpoiler($content, $title = '', $defaultCollapsed = true): string
if (!$title) {
$title = $lang_functions['spoiler_default_title'];
}
$content = str_replace(['<br>', '<br />'], '', $content);
// $content = str_replace(['<br>', '<br />'], '', $content);
$contentClass = "spoiler-content";
if ($defaultCollapsed) {
$contentClass .= " collapse";
Expand Down
8 changes: 4 additions & 4 deletions nexus/Install/Install.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Install
];
protected array $requiredFunctions = [
'symlink', 'putenv', 'proc_open', 'proc_get_status', 'exec',
// 'pcntl_signal', 'pcntl_alarm', 'pcntl_async_signals'
'pcntl_signal', 'pcntl_alarm', 'pcntl_async_signals'
];

protected string $lockFile = 'install.lock';
Expand Down Expand Up @@ -169,10 +169,10 @@ public function listRequirementTableRows()
$disabledFunctions = [];
foreach ($this->requiredFunctions as $fn) {
if (str_starts_with($fn, "pcntl_") && function_exists('exec')) {
$output = [];
$command = "php -r 'var_export(function_exists(\"$fn\"));'";
$result = exec($command, $output, $result_code);
$outputString = implode("\n", $output);
$exists = $outputString == 'true';
$exists = $output[0] == 'true';
if (!$exists) {
$disabledFunctions[] = $fn;
}
Expand All @@ -190,7 +190,7 @@ public function listRequirementTableRows()

foreach ($this->requiredExtensions as $extension) {
if ($extension == 'pcntl' && function_exists('exec')) {
// $loadedStr = executeCommand("php -m");
$output = [];
$result = exec("php -m", $output, $result_code);
$outputString = implode("\n", $output);
$loadedStr = $outputString;
Expand Down
1 change: 1 addition & 0 deletions resources/lang/en/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
'login_log' => 'Login logs',
'bonus_log' => 'Bonus logs',
'torrent_buy_log' => 'Torrent buy logs',
'attendance_log' => 'Attendance logs',
],
'resources' => [
'agent_allow' => [
Expand Down
1 change: 1 addition & 0 deletions resources/lang/zh_TW/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
'login_log' => '登錄記錄',
'bonus_log' => '魔力記錄',
'torrent_buy_log' => '種子購買',
'attendance_log' => '簽到記錄',
],
'resources' => [
'agent_allow' => [
Expand Down

0 comments on commit e1a7874

Please sign in to comment.