This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commit f710546
1 parent 6890b5a commit f710546
File tree
4 files changed
+67
-26
lines changed- core
- docbook/administration_guide/en
4 files changed
+67
-26
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
936 | 936 |
| |
937 | 937 |
| |
938 | 938 |
| |
939 |
| - | |
940 |
| - | |
941 |
| - | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
942 | 943 |
| |
943 | 944 |
| |
944 |
| - | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
945 | 957 |
| |
946 | 958 |
| |
947 | 959 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
144 | 144 |
| |
145 | 145 |
| |
146 | 146 |
| |
147 |
| - | |
| 147 | + | |
148 | 148 |
| |
149 | 149 |
| |
150 | 150 |
| |
|
+18-17
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
794 | 794 |
| |
795 | 795 |
| |
796 | 796 |
| |
797 |
| - | |
798 |
| - | |
799 |
| - | |
800 |
| - | |
801 |
| - | |
| 797 | + | |
802 | 798 |
| |
803 |
| - | |
804 |
| - | |
805 |
| - | |
806 |
| - | |
807 |
| - | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
808 | 803 |
| |
809 |
| - | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
810 | 808 |
| |
811 |
| - | |
812 |
| - | |
813 |
| - | |
814 |
| - | |
815 |
| - | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
816 | 816 |
| |
| 817 | + | |
817 | 818 |
| |
818 |
| - | |
| 819 | + | |
819 | 820 |
| |
820 | 821 |
| |
821 | 822 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
896 | 896 |
| |
897 | 897 |
| |
898 | 898 |
| |
899 |
| - | |
900 |
| - | |
901 |
| - | |
902 |
| - | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
903 | 931 |
| |
904 | 932 |
| |
905 | 933 |
| |
|
4 commit comments
atrol commentedon Aug 15, 2012
After upgrading old installations with setting $g_show_avatar = ON; will still work, but it's random behavior (seems that gravatar just ignores parameter ?d=1)
Did you check that mixed types (int|string) are working also with database configuration (adm_config_report.php)?
I had a short look and found only one other setting which uses mixed types ($g_limit_email_domain)
I prefer the simpler old approach to have to separate customization options for it.
dregad commentedon Aug 16, 2012
Hi @atrol
As usual, many thanks for your careful and thorough review :)
I was actually thinking about the very same thing last night, and am in fact finalizing a patch to address exactly that, i.e. avoid regression when using legacy configuration (if ON, then Mantis will use the "identicon" default)
In my tests, behavior is not random, and d=1 is not ignored by Gravatar, it just uses the default "rotated G" image. Did you notice something different ?
Yes I did, and found no issues with that
Both have their advantages - here we have one single config controlling everything in a rather simple and straightforward manner, which has the added benefit of reducing the number of global variables.
dregad commentedon Aug 16, 2012
Fixed - see fd20db7
atrol commentedon Aug 16, 2012
With "ignored" I meant that
http://www.gravatar.com/avatar/00000000000000000000000000000000 and
http://www.gravatar.com/avatar/00000000000000000000000000000000?d=1
are producing the same result (the rotated G image)
With "random behavior" I meant that the behavior is not documented.
It's just the re-engineered reproducible way it works at the moment.
You can't expect that d=1 produces the rotated G.
Maybe Gravatar will change the implementation and d=1 will generate
an error bitmap in future versions.
Possibly the better word for it is accidental and not random?
I agree,
I wrote because most of the MantisBT code is not using this coding style and
probably because I am not experienced in untyped programming languages and dealing
with === and !== .
I am quite sure that a lot of developers that started with typed languages
have their problems with it.
I am a bit aware of type problems since the following fix
3cca927
That's why I don't like dynamic or mixed typing.
Thanks