Changeset 519552
- Timestamp:
- 03/15/2012 08:21:08 PM (14 years ago)
- File:
-
- 1 edited
-
database-peek/trunk/database-peek.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
database-peek/trunk/database-peek.php
r515453 r519552 360 360 $cn = $col_names[$count]; 361 361 echo "<td>$cn</td>"; 362 $this->get_cell_formatted($value, $col_links, $col_names[$count] );362 $this->get_cell_formatted($value, $col_links, $col_names[$count], 500); 363 363 echo '</tr>'; 364 364 $count++; … … 404 404 405 405 406 function get_cell_formatted($value, $col_links, $name ) {406 function get_cell_formatted($value, $col_links, $name, $length = 50) { 407 407 $fk = ''; 408 408 409 if (strlen($value) > 50)410 $value = substr($value, 0, 50) . ' ' . '...';409 if (strlen($value) > $length) 410 $value = substr($value, 0, $length) . ' ' . '...'; 411 411 $value = esc_html($value); 412 412
Note: See TracChangeset
for help on using the changeset viewer.