From b84ee7f2cf4427d9578d6a52a998d279fd9642fa Mon Sep 17 00:00:00 2001 From: friendica <info@friendica.com> Date: Tue, 15 May 2012 04:31:38 -0700 Subject: [PATCH] default checked --- wppost.tgz | Bin 2676 -> 2700 bytes wppost/wppost.php | 4 +++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/wppost.tgz b/wppost.tgz index bf238ba96a18cc45fc8c61603ef6e604cf6285ec..dce99d58df5097f1ca829e42caf5b3123260a889 100755 GIT binary patch literal 2700 zcmV;73Ul=ziwFR7KC({$1MM39bK2O^znZ^dqk1C9U<9_YGX(IYIbZH(lEzJ(wll_M zg!BNNg``SP#!N5&d-r`xLfC;cPCIkjxm@7Aefz!pb{|<rQJ7F`?<t{;aMtba9d%F6 zj*d?D+TGKm(~}Ngm$29AoOMr5j?X&X<Gpt0==kVt54uk(m4q~*b_}q$u$`F~-+93U zc+sqT+Iji%<&Ti*2f|YLU;Nc_lH>_^aQ~k@?EmiRnehLyaD2OSa?<YZLHh}0DZwAy z|Fu5}*B_F=p7`X@w<pAJf?7=z5(oC8v>w?>vJ7Kat!pw9Kb);2PgX9O+Nn=V8@6-n zd%>+(hkw`hr+#SD9{6NRU)A=Po=fLFIBK_}d;Gev<Czy6(lF{lhcA7pX~xc+IJcAV zzASrL>NR;cNLrS$EZw8xB<W<~QFf?+)|F`gYqx7C=6^Jgo`A>W`G3^zVzL+OKj!~& zmH$5i`se8LTFrX#q6RPEFPJVp_&cV^WlWL;E-@(JO&A2kp<&E0ej<qzdlB`*peMFz zm^)ApW3Yo2oqNFyh@TKx&OK)in2QOpT$_;?{_+0Z$ICbH`tsKXBl$NHC!AcT)n?yc zr*t01J$Uck5_qrN0{uCqQO~lpqgqb5u%bAedOoohh&;s8R;@No1Bb~6BB;k+fG+m^ zdIPf&5Mna(5=!FnJPdE^CdctZ$M(%8WMJB^8wOS>KM={3gmWhwuQrhmLh4OD{2GMu zBBQ?r>4XIC14Mrd={O)1>)36QlXwfF@?`P=VMqBHxl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- a/wppost/wppost.php +++ b/wppost/wppost.php @@ -60,8 +60,10 @@ function wppost_settings(&$a,&$s) { $checked = (($enabled) ? ' checked="checked" ' : ''); $def_enabled = get_pconfig(local_user(),'wppost','post_by_default'); + $back_enabled = get_pconfig(local_user(),'wppost','backlink'); $def_checked = (($def_enabled) ? ' checked="checked" ' : ''); + $back_checked = (($back_enabled) ? ' checked="checked" ' : ''); $wp_username = get_pconfig(local_user(), 'wppost', 'wp_username'); $wp_password = get_pconfig(local_user(), 'wppost', 'wp_password'); @@ -98,7 +100,7 @@ function wppost_settings(&$a,&$s) { $s .= '<div id="wppost-backlink-wrapper">'; $s .= '<label id="wppost-backlink-label" for="wppost-backlink">' . t('Provide a backlink to the Friendica post') . '</label>'; - $s .= '<input id="wppost-backlink" type="checkbox" name="wp_backlink" value="1" ' . $def_checked . '/>'; + $s .= '<input id="wppost-backlink" type="checkbox" name="wp_backlink" value="1" ' . $back_checked . '/>'; $s .= '</div><div class="clear"></div>';