Browse Source

#15481: Html::powered() -> Html::poweredByYii()

tags/3.0.0-alpha1
Alexander Makarov 7 years ago
parent
commit
61dec0f021
No known key found for this signature in database
GPG Key ID: 3617B79C6A325E4A
  1. 2
      framework/CHANGELOG.md
  2. 2
      framework/UPGRADE.md
  3. 2
      framework/helpers/BaseHtml.php
  4. 2
      tests/framework/helpers/HtmlTest.php

2
framework/CHANGELOG.md

@ -40,7 +40,7 @@ Yii Framework 2 Change Log
- Enh #14671: use `random_int()` instead of `mt_rand()` to generate cryptographically secure pseudo-random integers (yyxx9988)
- Chg #14761: Removed Yii autoloader in favor of Composer's PSR-4 implementation (samdark)
- Chg #15448: Package "ezyang/htmlpurifier" has been made optional and is not installed by default (klimov-paul)
- Chg #15481: Moved `yii\BaseYii::powered()` method to `yii\helpers\Html::powered()` (Kolyunya)
- Chg #15481: Moved `yii\BaseYii::powered()` method to `yii\helpers\Html::poweredByYii()` (Kolyunya)
2.0.14 under development
------------------------

2
framework/UPGRADE.md

@ -157,7 +157,7 @@ Upgrade from Yii 2.0.x
* Package "ezyang/htmlpurifier" has been made optional and is not installed by default. If you need to use
`yii\helpers\HtmlPurifier` or `yii\i18n\Formatter::asHtml()` (e.g. 'html' data format), you'll have to install
this package manually for your project.
* `yii\BaseYii::powered()` method has been moved to `yii\helpers\Html::powered()`.
* `yii\BaseYii::powered()` method has been moved to `yii\helpers\Html::poweredByYii()`.
Please update all references to this method in you application code.

2
framework/helpers/BaseHtml.php

@ -2224,7 +2224,7 @@ class BaseHtml
* @return string an HTML hyperlink that can be displayed on your Web page showing "Powered by Yii Framework" information
* @since 2.1.0
*/
public static function powered()
public static function poweredByYii()
{
$yiiTitle = Yii::t('yii', 'Yii Framework');
$yiiUrl = 'http://www.yiiframework.com/';

2
tests/framework/helpers/HtmlTest.php

@ -1566,7 +1566,7 @@ HTML;
{
Yii::$app->language = $language;
$actual = Html::powered();
$actual = Html::poweredByYii();
$this->assertEquals($expected, $actual);
}

Loading…
Cancel
Save