Revision: 48571
Author: nad
Date: 2009-03-19 05:29:26 +0000 (Thu, 19 Mar 2009)
Log Message:
-----------
use the "more entropy" option for the GUID's uniqid
Modified Paths:
--------------
trunk/extensions/RecordAdmin/RecordAdmin_body.php
Modified: trunk/extensions/RecordAdmin/RecordAdmin_body.php
===================================================================
--- trunk/extensions/RecordAdmin/RecordAdmin_body.php 2009-03-19 05:11:55 UTC
(rev 48570)
+++ trunk/extensions/RecordAdmin/RecordAdmin_body.php 2009-03-19 05:29:26 UTC
(rev 48571)
@@ -16,7 +16,7 @@
function __construct() {
# Name to use for creating a new record either via RecordAdmin
or a public form
# todo: should add a hook here for custom default-naming
- $this->guid = strftime( '%Y%m%d', time() ) . '-' . substr(
strtoupper( uniqid() ), -5 );
+ $this->guid = strftime( '%Y%m%d', time() ) . '-' . substr(
strtoupper( uniqid('', true) ), -5 );
wfLoadExtensionMessages ( 'RecordAdmin' );
SpecialPage::SpecialPage( 'RecordAdmin', 'recordadmin' );
}
@@ -388,6 +388,7 @@
$form = preg_replace(
'#(<select.+?>)\s*(?!<option/>)#s', '$1<option selected/>', $form ); # ensure
all select lists have default blank
}
else {
+
# Create a red link to the form if it doesn't exist
$form = '<b>' . wfMsg( 'recordadmin-noform', $type ) .
'</b>'
. '<br /><a href="' . $title->getLocalURL(
'action=edit' )
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs