Changeset 3874:ab8368569446 for inc/core/class.dc.settings.php
- Timestamp:
- 09/14/18 12:16:17 (7 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/core/class.dc.settings.php
r3731 r3874 23 23 protected $blog_id; ///< <b>string</b> Blog ID 24 24 25 protected $namespaces = array(); ///< <b>array</b> Associative namespaces array25 protected $namespaces = []; ///< <b>array</b> Associative namespaces array 26 26 27 27 protected $ns; ///< <b>string</b> Current namespace … … 222 222 $this->namespaces[$this->ns]->$n['value'] = $v; 223 223 } else { 224 $this->namespaces[$this->ns]->$n = array(224 $this->namespaces[$this->ns]->$n = [ 225 225 'ns' => $this->ns, 226 226 'value' => $v, … … 228 228 'label' => '', 229 229 'global' => false 230 );230 ]; 231 231 } 232 232 } … … 321 321 $this->raiseDeprecated('dumpSettings'); 322 322 323 $settings = array();323 $settings = []; 324 324 // Parse all the namespaces 325 325 foreach (array_keys($this->namespaces) as $id => $ns) { … … 343 343 $this->raiseDeprecated('dumpGlobalSettings'); 344 344 345 $settings = array();345 $settings = []; 346 346 // Parse all the namespaces 347 347 foreach (array_keys($this->namespaces) as $id => $ns) { … … 363 363 @return <b>record</b> A record 364 364 */ 365 public function getGlobalSettings($params = array())365 public function getGlobalSettings($params = []) 366 366 { 367 367 $strReq = "SELECT * from " . $this->table . " "; 368 $where = array();368 $where = []; 369 369 if (!empty($params['ns'])) { 370 370 $where[] = "setting_ns = '" . $this->con->escape($params['ns']) . "'";
Note: See TracChangeset
for help on using the changeset viewer.