dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
OOUIHTMLForm: Make boolean form field parameters actually work everywhere
[lhc/web/wiklou.git]
/
includes
/
Licenses.php
diff --git
a/includes/Licenses.php
b/includes/Licenses.php
index
e3db5b4
..
0bcbc91
100644
(file)
--- a/
includes/Licenses.php
+++ b/
includes/Licenses.php
@@
-28,31
+28,25
@@
* A License class for use on Special:Upload
*/
class Licenses extends HTMLFormField {
* A License class for use on Special:Upload
*/
class Licenses extends HTMLFormField {
- /**
- * @var string
- */
+ /** @var string */
protected $msg;
protected $msg;
- /**
- * @var array
- */
+ /** @var array */
protected $licenses = array();
protected $licenses = array();
- /**
- * @var string
- */
+ /** @var string */
protected $html;
/**#@-*/
/**
protected $html;
/**#@-*/
/**
- * Constructor
- *
* @param array $params
*/
public function __construct( $params ) {
parent::__construct( $params );
* @param array $params
*/
public function __construct( $params ) {
parent::__construct( $params );
- $this->msg = empty( $params['licenses'] ) ? wfMessage( 'licenses' )->inContentLanguage()->plain() : $params['licenses'];
+ $this->msg = empty( $params['licenses'] )
+ ? wfMessage( 'licenses' )->inContentLanguage()->plain()
+ : $params['licenses'];
$this->selected = null;
$this->makeLicenses();
$this->selected = null;
$this->makeLicenses();
@@
-198,20
+192,14
@@
class Licenses extends HTMLFormField {
* A License class for use on Special:Upload (represents a single type of license).
*/
class License {
* A License class for use on Special:Upload (represents a single type of license).
*/
class License {
- /**
- * @var string
- */
- var $template;
+ /** @var string */
+ public $template;
- /**
- * @var string
- */
- var $text;
+ /** @var string */
+ public $text;
/**
/**
- * Constructor
- *
- * @param string $str license name??
+ * @param string $str License name??
*/
function __construct( $str ) {
list( $text, $template ) = explode( '|', strrev( $str ), 2 );
*/
function __construct( $str ) {
list( $text, $template ) = explode( '|', strrev( $str ), 2 );