Skip to content

Commit

Permalink
Merge pull request #34 from digitalutsc/handle_slash_period
Browse files Browse the repository at this point in the history
Handle slash period
  • Loading branch information
kylehuynh205 authored Mar 12, 2024
2 parents 7ecd8b4 + 262ae20 commit d82e384
Show file tree
Hide file tree
Showing 4 changed files with 326 additions and 155 deletions.
11 changes: 11 additions & 0 deletions admin/NoidLib/custom/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,17 @@ static public function exist(string $dbname)
return $existed;
}

/**
* Update database settings
* @param $dbname
* @param $field
* @param null $value
*/
public static function dbupdatesetting($dbname, $dbdir, $field, $value) {
$noid = self::dbopen($dbname, $dbdir, DatabaseInterface::DB_WRITE);
self::$engine->set(GlobalsArk::_RR . "/$field", $value);
self::dbclose($noid);
}

/**
* @param $dbdir
Expand Down
Loading

0 comments on commit d82e384

Please sign in to comment.