Changeset 3265:fb9870e49400 for inc/admin
- Timestamp:
- 07/10/16 17:43:26 (9 years ago)
- Branch:
- default
- Children:
- 3266:7af12b0d86d2, 3286:756eedc2fc15
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/lib.pager.php
r3239 r3265 147 147 $this->html_next = __('next »'); 148 148 } 149 150 public function userColumns($type,$cols) 151 { 152 $cols_user = @$this->core->auth->user_prefs->interface->cols; 153 if (is_array($cols_user)) { 154 if (isset($cols_user[$type])) { 155 foreach ($cols_user[$type] as $cn => $cd) { 156 if (!$cd && isset($cols[$cn])) { 157 unset($cols[$cn]); 158 } 159 } 160 } 161 } 162 } 149 163 } 150 164 … … 218 232 $this->core->callBehavior('adminPostListHeader',$this->core,$this->rs,$cols); 219 233 234 // Cope with optional columns 235 $this->userColumns('posts',$cols); 236 220 237 $html_block .= '<tr>'.implode(iterator_to_array($cols)).'</tr>%s</table></div>'; 221 238 if ($enclose_block) { … … 313 330 $this->core->callBehavior('adminPostListValue',$this->core,$this->rs,$cols); 314 331 332 // Cope with optional columns 333 $this->userColumns('posts',$cols); 334 315 335 $res .= implode(iterator_to_array($cols)); 316 336 $res .= '</tr>'; … … 345 365 $cols = new ArrayObject($cols); 346 366 $this->core->callBehavior('adminPostMiniListHeader',$this->core,$this->rs,$cols); 367 368 // Cope with optional columns 369 $this->userColumns('posts',$cols); 347 370 348 371 $html_block .= '<tr>'.implode(iterator_to_array($cols)).'</tr>%s</table></div>'; … … 423 446 $cols = new ArrayObject($cols); 424 447 $this->core->callBehavior('adminPostMiniListValue',$this->core,$this->rs,$cols); 448 449 // Cope with optional columns 450 $this->userColumns('posts',$cols); 425 451 426 452 $res .= implode(iterator_to_array($cols));
Note: See TracChangeset
for help on using the changeset viewer.