Index: trunk/extensions/RecordAdmin/RecordAdmin_body.php |
— | — | @@ -16,7 +16,7 @@ |
17 | 17 | function __construct() { |
18 | 18 | # Name to use for creating a new record either via RecordAdmin or a public form |
19 | 19 | # todo: should add a hook here for custom default-naming |
20 | | - $this->guid = strftime( '%Y%m%d', time() ) . '-' . substr( strtoupper( uniqid() ), -5 ); |
| 20 | + $this->guid = strftime( '%Y%m%d', time() ) . '-' . substr( strtoupper( uniqid('', true) ), -5 ); |
21 | 21 | wfLoadExtensionMessages ( 'RecordAdmin' ); |
22 | 22 | SpecialPage::SpecialPage( 'RecordAdmin', 'recordadmin' ); |
23 | 23 | } |
— | — | @@ -388,6 +388,7 @@ |
389 | 389 | $form = preg_replace( '#(<select.+?>)\s*(?!<option/>)#s', '$1<option selected/>', $form ); # ensure all select lists have default blank |
390 | 390 | } |
391 | 391 | else { |
| 392 | + |
392 | 393 | # Create a red link to the form if it doesn't exist |
393 | 394 | $form = '<b>' . wfMsg( 'recordadmin-noform', $type ) . '</b>' |
394 | 395 | . '<br /><a href="' . $title->getLocalURL( 'action=edit' ) |