Index: trunk/extensions/RecordAdmin/RecordAdmin_body.php |
— | — | @@ -307,7 +307,7 @@ |
308 | 308 | if( $groupby ) $groupby = self::split( $groupby, ',' ); |
309 | 309 | |
310 | 310 | $type = $this->type; |
311 | | - $id = strlen($sortable) > 5 ? " id=\"$sortable\"" : ""; |
| 311 | + $id = ( $sortable && $sortable != 1 ) ? " id=\"$sortable\"" : ""; |
312 | 312 | $sortable = $sortable ? " sortable" : ""; |
313 | 313 | $br = $sortable ? "<br />" : ""; |
314 | 314 | $format = $wgRequest->getText( 'export' ); |
— | — | @@ -957,7 +957,11 @@ |
958 | 958 | elseif( $k == 'groupby' ) $groupby = $v; |
959 | 959 | elseif( $k == 'format' ) $format = $v; |
960 | 960 | elseif( $k == 'cols' ) $cols = self::split( $v, ',' ); |
961 | | - elseif( $k == 'sortable' ) $sortable = !empty( $v ); |
| 961 | + elseif( $k == 'sortable' ) { |
| 962 | + $sortable = strtolower( $v ); |
| 963 | + if( $sortable == 'yes' || $sortable == 'true' ) $sortable = 1; |
| 964 | + if( $sortable == 'no' || $sortable == 'false' ) $sortable = false; |
| 965 | + } |
962 | 966 | elseif( $k == 'template' ) $template = $v; |
963 | 967 | elseif( $k == 'count' ) $count = $v; |
964 | 968 | elseif( $k == 'export' ) $export = $v; |