Changeset 3874:ab8368569446 for plugins/aboutConfig/index.php
- Timestamp:
- 09/14/18 12:16:17 (7 years ago)
- Branch:
- default
- File:
-
- 1 edited
-
plugins/aboutConfig/index.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
plugins/aboutConfig/index.php
r3813 r3874 71 71 { 72 72 if ($s['type'] == 'boolean') { 73 $field = form::combo( array($field_name . '[' . $ns . '][' . $id . ']', $field_name . '_' . $ns . '_' . $id),74 array(__('yes') => 1, __('no') => 0), $s['value'] ? 1 : 0);73 $field = form::combo([$field_name . '[' . $ns . '][' . $id . ']', $field_name . '_' . $ns . '_' . $id], 74 [__('yes') => 1, __('no') => 0], $s['value'] ? 1 : 0); 75 75 } else { 76 76 if ($s['type'] == 'array') { 77 $field = form::field( array($field_name . '[' . $ns . '][' . $id . ']', $field_name . '_' . $ns . '_' . $id), 40, null,77 $field = form::field([$field_name . '[' . $ns . '][' . $id . ']', $field_name . '_' . $ns . '_' . $id], 40, null, 78 78 html::escapeHTML(json_encode($s['value']))); 79 79 } else { 80 $field = form::field( array($field_name . '[' . $ns . '][' . $id . ']', $field_name . '_' . $ns . '_' . $id), 40, null,80 $field = form::field([$field_name . '[' . $ns . '][' . $id . ']', $field_name . '_' . $ns . '_' . $id], 40, null, 81 81 html::escapeHTML($s['value'])); 82 82 } 83 83 } 84 $type = form::hidden( array($field_name . '_type' . '[' . $ns . '][' . $id . ']', $field_name . '_' . $ns . '_' . $id . '_type'),84 $type = form::hidden([$field_name . '_type' . '[' . $ns . '][' . $id . ']', $field_name . '_' . $ns . '_' . $id . '_type'], 85 85 html::escapeHTML($s['type'])); 86 86 … … 105 105 <?php 106 106 echo dcPage::breadcrumb( 107 array(107 [ 108 108 __('System') => '', 109 109 html::escapeHTML($core->blog->name) => '', 110 110 __('about:config') => '' 111 )) .111 ]) . 112 112 dcPage::notices(); 113 113 ?> … … 129 129 $table_footer = '</tbody></table></div>'; 130 130 131 $settings = array();131 $settings = []; 132 132 foreach ($core->blog->settings->dumpNamespaces() as $ns => $namespace) { 133 133 foreach ($namespace->dumpSettings() as $k => $v) { … … 137 137 ksort($settings); 138 138 if (count($settings) > 0) { 139 $ns_combo = array();139 $ns_combo = []; 140 140 foreach ($settings as $ns => $s) { 141 141 $ns_combo[$ns] = '#l_' . $ns; … … 174 174 175 175 <?php 176 $settings = array();176 $settings = []; 177 177 178 178 foreach ($core->blog->settings->dumpNamespaces() as $ns => $namespace) { … … 185 185 186 186 if (count($settings) > 0) { 187 $ns_combo = array();187 $ns_combo = []; 188 188 foreach ($settings as $ns => $s) { 189 189 $ns_combo[$ns] = '#g_' . $ns;
Note: See TracChangeset
for help on using the changeset viewer.
