mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-14 22:30:27 +08:00
Fixed wrong case in method calls
This commit is contained in:
@ -179,7 +179,7 @@ class MemCache extends Cache
|
||||
// $timeout is used for memcache versions that do not have $timeoutms parameter
|
||||
$timeout = (int) ($server->timeout / 1000) + (($server->timeout % 1000 > 0) ? 1 : 0);
|
||||
if ($paramCount === 9) {
|
||||
$cache->addServer(
|
||||
$cache->addserver(
|
||||
$server->host,
|
||||
$server->port,
|
||||
$server->persistent,
|
||||
@ -191,7 +191,7 @@ class MemCache extends Cache
|
||||
$server->timeout
|
||||
);
|
||||
} else {
|
||||
$cache->addServer(
|
||||
$cache->addserver(
|
||||
$server->host,
|
||||
$server->port,
|
||||
$server->persistent,
|
||||
|
@ -129,7 +129,7 @@ class HelpController extends Controller
|
||||
*/
|
||||
protected function getModuleCommands($module)
|
||||
{
|
||||
$prefix = $module instanceof Application ? '' : $module->getUniqueID() . '/';
|
||||
$prefix = $module instanceof Application ? '' : $module->getUniqueId() . '/';
|
||||
|
||||
$commands = [];
|
||||
foreach (array_keys($module->controllerMap) as $id) {
|
||||
|
@ -152,7 +152,7 @@ class HttpCache extends ActionFilter
|
||||
if (isset($_SERVER['HTTP_IF_NONE_MATCH'])) {
|
||||
// HTTP_IF_NONE_MATCH takes precedence over HTTP_IF_MODIFIED_SINCE
|
||||
// http://tools.ietf.org/html/rfc7232#section-3.3
|
||||
return $etag !== null && in_array($etag, Yii::$app->request->getEtags(), true);
|
||||
return $etag !== null && in_array($etag, Yii::$app->request->getETags(), true);
|
||||
} elseif (isset($_SERVER['HTTP_IF_MODIFIED_SINCE'])) {
|
||||
return $lastModified !== null && @strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) >= $lastModified;
|
||||
} else {
|
||||
|
@ -112,7 +112,7 @@ class CheckboxColumn extends Column
|
||||
if ($this->header !== null || !$this->multiple) {
|
||||
return parent::renderHeaderCellContent();
|
||||
} else {
|
||||
return Html::checkBox($name, false, ['class' => 'select-on-check-all']);
|
||||
return Html::checkbox($name, false, ['class' => 'select-on-check-all']);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -91,7 +91,7 @@ class m140506_102106_rbac_init extends \yii\db\Migration
|
||||
'FOREIGN KEY (item_name) REFERENCES ' . $authManager->itemTable . ' (name) ON DELETE CASCADE ON UPDATE CASCADE',
|
||||
], $tableOptions);
|
||||
|
||||
if($this->isMsSQL()) {
|
||||
if($this->isMSSQL()) {
|
||||
$this->execute("CREATE TRIGGER dbo.trigger_auth_item_child
|
||||
ON dbo.{$authManager->itemTable}
|
||||
INSTEAD OF DELETE, UPDATE
|
||||
@ -137,7 +137,7 @@ class m140506_102106_rbac_init extends \yii\db\Migration
|
||||
$authManager = $this->getAuthManager();
|
||||
$this->db = $authManager->db;
|
||||
|
||||
if($this->isMsSQL()) {
|
||||
if($this->isMSSQL()) {
|
||||
$this->execute('DROP dbo.trigger_auth_item_child;');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user