Skip to content

Commit

Permalink
minor performance improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
nightflyza committed Oct 18, 2021
1 parent d184b4d commit c35385f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion RELEASE
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.1 rev 8159
1.2.1 rev 8160
2 changes: 1 addition & 1 deletion api/libs/api.taskbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ protected function loadCategoryElements($category) {
if (!empty($allElements)) {
$categoryName = (isset($this->categories[$category])) ? $this->categories[$category] : '';
foreach ($allElements as $io => $eachfilename) {
$elementData = rcms_parse_ini_file($elementsPath . $eachfilename);
$elementData = parse_ini_file($elementsPath . $eachfilename);
if ((isset($elementData['TYPE'])) AND ( isset($elementData['ID']))) {
if (!isset($this->loadedElements[$elementData['ID']])) {
$this->loadedElements[$elementData['ID']] = $elementData;
Expand Down
10 changes: 5 additions & 5 deletions api/libs/api.ubconfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function __construct() {
* @return void
*/
protected function loadAlter() {
$this->alterCfg = rcms_parse_ini_file(CONFIG_PATH . 'alter.ini');
$this->alterCfg = parse_ini_file(CONFIG_PATH . 'alter.ini');
}

/**
Expand All @@ -48,7 +48,7 @@ public function getAlter() {
public function getAlterParam($param = false, $retValIfParamEmptyOrNotExists = null) {
$alterParam = ($param and isset($this->alterCfg[$param])) ? $this->alterCfg[$param] : false;

if ($alterParam === false and !is_null($retValIfParamEmptyOrNotExists)) {
if ($alterParam === false and ! is_null($retValIfParamEmptyOrNotExists)) {
$alterParam = $retValIfParamEmptyOrNotExists;
}

Expand All @@ -61,7 +61,7 @@ public function getAlterParam($param = false, $retValIfParamEmptyOrNotExists = n
* @return void
*/
protected function loadBilling() {
$this->billingCfg = rcms_parse_ini_file(CONFIG_PATH . 'billing.ini');
$this->billingCfg = parse_ini_file(CONFIG_PATH . 'billing.ini');
}

/**
Expand All @@ -79,7 +79,7 @@ public function getBilling() {
* @return void
*/
protected function loadYmaps() {
$this->ymapsCfg = rcms_parse_ini_file(CONFIG_PATH . "ymaps.ini");
$this->ymapsCfg = parse_ini_file(CONFIG_PATH . 'ymaps.ini');
}

/**
Expand All @@ -100,7 +100,7 @@ public function getYmaps() {
* @return void
*/
protected function loadPhoto() {
$this->photoCfg = rcms_parse_ini_file(CONFIG_PATH . "photostorage.ini");
$this->photoCfg = parse_ini_file(CONFIG_PATH . 'photostorage.ini');
}

/**
Expand Down
2 changes: 1 addition & 1 deletion config/taskbar.d/directories/a_cashtypes.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ID="cashtypes"
NAME="Payment types"
URL="?module=cashtypes"
ICON="cashtypes.gif
ICON="cashtypes.gif"
NEED_RIGHT="CASHTYPES"
NEED_OPTION=""
TYPE="icon"
2 changes: 1 addition & 1 deletion config/taskbar.d/instruments/pl_dealwithit.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ID="pl_dealwithit"
NAME="Deal with it"
URL="?module=pl_dealwithit""
URL="?module=pl_dealwithit"
ICON="dealwithit_cron.png"
NEED_RIGHT="DEALWITHIT"
NEED_OPTION="DEALWITHIT_ENABLED"
Expand Down

0 comments on commit c35385f

Please sign in to comment.