Commit Graph

4243 Commits

Author SHA1 Message Date
Alexander Makarov
ca465eae18 Renamed handleError to handleException 2014-05-06 19:15:18 +04:00
Alexander Makarov
6cfc949691 Added CUBRID support for throwing integrity exception 2014-05-06 19:13:54 +04:00
Alexander Makarov
7764086c5d IntegrityException should be thrown for relational DBs only 2014-05-06 19:07:23 +04:00
Alexander Makarov
d1ec2a0241 Better naming for Schema properties 2014-05-06 19:06:34 +04:00
Alex-Code
8d80582f0c Update CHANGELOG.md 2014-05-06 15:58:41 +01:00
Alex-Code
7dfd210b79 Update DefaultValueValidator.php
Allow the default value to be a closure
2014-05-06 15:56:02 +01:00
Marius Kubrakov
1182ba5e45 Fixes #3368 value also has to be parsed. 2014-05-06 17:44:34 +03:00
Alexander Makarov
2aa5555654 Fixes #2435: yii\db\IntegrityException is now thrown on database integrity errors instead of general yii\db\Exception 2014-05-06 18:28:06 +04:00
Alexander Makarov
ca23cd8a2c Implemented throwing \yii\db\IntegrityException on DB integrity errors 2014-05-06 18:26:27 +04:00
Carsten Brandt
76b3d89d83 Merge branch 'master' of github.com:yiisoft/yii2
* 'master' of github.com:yiisoft/yii2: (43 commits)
  `BaseActiveRecord::findAll()` comment fix
  Fixes #2913: RBAC `DbManager` is now initialized via migration
  [NL] Removed app.php
  [NL] brought translations up to date
  Fix for comparing numeric attributes in JavaScript
  Better Gii caption english
  Fix for comparing numeric attributes in JavaScript
  HHVM compatibility Fixes for Yii 2 Console Application
  Rough creation of a doc style guide
  typo
  Finished Edits
  Edited up to Active Record
  renamed chapter to section [skip ci]
  Catalan translation
  Edited up through "I18N"
  Cleaned Up
  updated guide toc [skip ci]
  Update concept-behaviors.md
  Fixed wrong links [skip ci]
  Fixed document for multisort in BaseArrayHelper
  ...
2014-05-06 16:00:45 +02:00
Carsten Brandt
c3fe4aa0fd @inheritdoc from interfaces and params 2014-05-06 15:59:52 +02:00
Alexander Makarov
b86f5a14f7 #2435 Tests for integrity exception 2014-05-06 16:56:51 +04:00
Alexander Kochetov
d041116b94 BaseActiveRecord::findAll() comment fix 2014-05-06 16:18:01 +04:00
Alexander Makarov
42c566935e Fixes #2913: RBAC DbManager is now initialized via migration 2014-05-06 14:59:40 +04:00
Steve Guns
8347ca5cb1 [NL] Removed app.php 2014-05-06 11:15:46 +02:00
Steve Guns
ddce87a355 [NL] brought translations up to date 2014-05-06 10:56:38 +02:00
Carsten Brandt
0d2995f7fb Merge pull request #3368 from technixp/master
Fix for comparing numeric attributes in JavaScript
2014-05-06 10:30:12 +02:00
Marius Kubrakov
a2bf04b084 Fix for comparing numeric attributes in JavaScript 2014-05-06 11:15:58 +03:00
Jurmarcus Allen
6099e85160 HHVM compatibility Fixes for Yii 2 Console Application 2014-05-06 01:18:37 -05:00
larnu
15135b8071 Catalan translation 2014-05-05 19:46:57 +02:00
Yeung Song
5ea81a91c9 Fixed document for multisort in BaseArrayHelper
Fixed
2014-05-05 16:33:08 +08:00
Agrumas
c19e76e09d Lithuanian translation cleanup. [skip ci] 2014-05-04 20:45:46 +03:00
Agrumas
82dbbce481 Updated Lithuanian translation 2014-05-04 20:01:30 +03:00
Agrumas
f5e5ffa3b1 Merge branch 'master' of https://github.com/yiisoft/yii2 2014-05-04 19:25:34 +03:00
Alexander Makarov
4e5079abd8 Fix #3327: "Unable to find debug data" when logging objects with circular references 2014-05-04 20:02:06 +04:00
Qiang Xue
7450c0d9d4 changelog update. [skip ci] 2014-05-02 13:03:35 -04:00
armab
313139968e Update BaseMailer.php 2014-05-02 18:34:13 +03:00
armab
cdadc01ba2 Update BaseMailer.php 2014-05-02 17:33:25 +03:00
armab
a324b26c7f BaseMailer: strip <style> content from TextBody fix
If ```$htmlLayout``` contains <style> tags with CSS rules,
strip_tags here: https://github.com/yiisoft/yii2/blob/master/framework/mail/BaseMailer.php#L189
won't clean those CSS rules.

Actual html: 
```html
<html>
    <head>
        <style>
            .text-secondary {color: #93959A;}
            [...]
            [Other CSS rules]
            [...]
        </style>
    </head>
    <body>
        <div>Some content</div>
    </body>
</html>
```

Will look this way in TEXT version of Email: 
```
.text-secondary {color: #93959A;}
[...]
[Other CSS rules]
[...]
Some content
```

--------------

If TEXT version of Email differs drastically from visible content of HTML version,
it can be result that some penalty points will apply to such mails: 
http://wiki.apache.org/spamassassin/Rules/MPART_ALT_DIFF_COUNT


Since it's default behaviour for both yii2-app-advanced and yii2-app-basic (where stripped from tags html used for TextBody),
I believe people will stumble in this for sure, without even knowing that their emails can be penalized.


You can reproduce it by placing CSS styles in email view or layout
and test it here: http://www.mail-tester.com/ (SpamAssassin section).
2014-05-02 17:01:03 +03:00
Alexander Makarov
a4c644d3a3 Fixes #3325: fixed generated markup for conditional comments
No changelog line since feature was introduced after beta
2014-05-02 15:29:26 +04:00
Alexander Makarov
009238156e Fixed slashed to match guide 2014-05-02 14:47:19 +04:00
Qiang Xue
0880656be3 Fixes #3311. 2014-05-01 22:19:48 -04:00
Yeung Song
9dcdbd5e30 update document for BaseYii::setAlias method.
update
2014-05-02 05:42:30 +08:00
Qiang Xue
48c7e328c9 Finished behavior guide [skip ci] 2014-04-30 21:21:53 -04:00
Carsten Brandt
2e892c42e4 added docs about build automation tool
fixes #2852
2014-04-30 23:44:56 +02:00
Qiang Xue
5b6e79dc14 Fixes #3298: Supported configuring View::theme using a class name 2014-04-30 08:36:28 -04:00
Qiang Xue
7d31cba3a8 Finished event guide. [skip ci] 2014-04-29 19:03:06 -04:00
Qiang Xue
d954618796 Added support to insert an event handler at the beginning of class-level event handler queue 2014-04-29 18:31:54 -04:00
Alexander Makarov
340278b59c Fixes #3183: fixed regression after #3175 2014-04-30 01:31:11 +04:00
Alexander Makarov
d1558770d9 Added issue number to bootstrap/preload change 2014-04-29 20:38:03 +04:00
Alexander Makarov
a620342315 Adjusted phpdoc, tests and changelog for StringHelper::truncate and StringHelper::truncateWords 2014-04-29 18:23:48 +04:00
Alexander Makarov
8d18d722b2 Merge branch 'stringhelper-truncate' of github.com:Alex-Code/yii2 into Alex-Code-stringhelper-truncate
Conflicts:
	framework/CHANGELOG.md
2014-04-29 18:03:44 +04:00
Paul K
b09d0f12af overwrite -> override 2014-04-29 13:54:21 +02:00
Carsten Brandt
6f7be5ee5c filterWhere for postgres ILIKE
fixes #3252
2014-04-29 13:22:31 +02:00
Carsten Brandt
5c748ddb42 added case insensitve LIKE to PostgresQueryBuilder
fixes #3252

also improved unit tests for querybuilder buildLikeCondition
2014-04-29 12:04:10 +02:00
Qiang Xue
453ed4d93a fixed #3268 2014-04-27 17:22:07 -04:00
Qiang Xue
9b71adb4fa Fixes #3268: Fixed the bug that the schema name in a table name was not respected by yii\db\mysql\Schema 2014-04-27 12:14:30 -04:00
Qiang Xue
4fcd5003de Fixes #2906: Added support for using conditional comments for js and css files registered through asset bundles and Html helper 2014-04-26 20:25:48 -04:00
Carsten Brandt
3437c571a1 phpdoc controller did not find some setters
fixes #3255
2014-04-26 13:03:08 +02:00
Qiang Xue
7b374c4126 Fixes #3230: Added yii\filters\AccessControl::user to support access control with different actors 2014-04-25 22:22:03 -04:00