Skip to content

Commit 08b4787

Browse files
committed
crontab editor update
1 parent daa276a commit 08b4787

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

RELEASE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.5.6 rev 9415
1+
1.5.6 rev 9416

api/libs/api.crontabeditor.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,11 @@ public function getSystemName() {
8383
if (ispos($linuxDistro, 'Debian GNU/Linux 12 (bookworm)')) {
8484
$result = 'Debian12';
8585
}
86+
if (ispos($linuxDistro, 'Debian GNU/Linux 13 (trixie)')) {
87+
$result = 'Debian13';
88+
}
8689
}
87-
return($result);
90+
return ($result);
8891
}
8992

9093
/**
@@ -93,7 +96,7 @@ public function getSystemName() {
9396
* @return string
9497
*/
9598
public function getCurrentCrontab() {
96-
return($this->currentCrontab);
99+
return ($this->currentCrontab);
97100
}
98101

99102
/**
@@ -104,7 +107,7 @@ public function getCurrentCrontab() {
104107
public function renderEditForm() {
105108
$result = '';
106109
$result .= web_FileEditorForm(self::TMP_FILE_PATH, htmlentities($this->currentCrontab, ENT_COMPAT, "UTF-8")); // OMG OMG OMG!!!!!
107-
return($result);
110+
return ($result);
108111
}
109112

110113
/**
@@ -147,6 +150,6 @@ public function installNewCrontab() {
147150
} else {
148151
$result .= __('File') . ' ' . self::TMP_FILE_PATH . ' ' . __('Not exists');
149152
}
150-
return($result);
153+
return ($result);
151154
}
152155
}

0 commit comments

Comments
 (0)