Prepare combo list reload with revisions and fix box/storage in webgui
This commit is contained in:
1 parent
ee947b772f
commit
aee50ecb4f
17 files changed
+128
-43
No files matched your search
@@ -53,6 +53,20 @@ function db_get_ddtext($ddid, $ddval) {
|
||||
return $sth->fetchColumn();
|
||||
}
|
||||
|
||||
function db_set_revision($revtype, $revid) {
|
||||
global $pdo;
|
||||
global $g_error;
|
||||
$sql = "INSERT INTO revision (revtype, revid, changed) "
|
||||
. "VALUES (?, ?, NOW()) "
|
||||
. "ON DUPLICATE KEY UPDATE changed = NOW()";
|
||||
try {
|
||||
$sth = $pdo->prepare($sql);
|
||||
$sth->execute([$revtype, $revid]);
|
||||
} catch(PDOException $e) {
|
||||
$g_error->Add($e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
// ========== OPTION FUNCTIONS ================================================
|
||||
|
||||
// Functions to get option lists (key/value)
|
||||
|
||||
Reference in new issue
Block a user