X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FLicenses.php;h=0bcbc91b2216eb30bf5da18190d3dc30a6006be0;hb=fa16b9fddf3ae05601b335c8709fa28b1d5430e6;hp=e3db5b416c6130e6c2a9bdc5212add6018fa02b3;hpb=c0cdf0e91186728c8e283bbcc977d6831f4b93d1;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Licenses.php b/includes/Licenses.php index e3db5b416c..0bcbc91b22 100644 --- a/includes/Licenses.php +++ b/includes/Licenses.php @@ -28,31 +28,25 @@ * A License class for use on Special:Upload */ class Licenses extends HTMLFormField { - /** - * @var string - */ + /** @var string */ protected $msg; - /** - * @var array - */ + /** @var array */ protected $licenses = array(); - /** - * @var string - */ + /** @var string */ protected $html; /**#@-*/ /** - * Constructor - * * @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(); @@ -198,20 +192,14 @@ class Licenses extends HTMLFormField { * 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 );