From e031a5209cc00c221faabfbcad752e1ed066b793 Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 13 Nov 2011 15:49:19 -0800 Subject: [PATCH] default title for wppost --- wppost.tgz | Bin 2147 -> 2173 bytes wppost/wppost.php | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wppost.tgz b/wppost.tgz index c76b41380f0656ec335c556fcf4863f50001e2fc..43bc6f26e836faad81d71cfb7e28712002a66625 100644 GIT binary patch literal 2173 zcmV-@2!i(?iwFRESHMmH1MOMsZ`;Tb_gCw$n6O4D1+pmFlHw|ojNs0fE0A2=#Mgd^ z1A!t}(w-@jM=mWJz5MSt`{Gl!MK?}cG(>=iyYt%LJa&fOgkcafYwszaEV@g5AG)GGBPF|#9py|wKuX>?8f zJLtmYVAwl3Ir$bgeZyxX{V)IPIC1<0I=F*}!~UKAAM}p7|NA0LdR_E?|9IHlgYFa9 zQhEN*{onYDbp0Xm?YTz|J$p{PHt5wPCXsKiE9;>h$D1H>%j}vw;SHz>)MW%)IVfFID(#7`qD_vbXLTQr|K7o$=^S?J3_J^hV-|u((-}C=lJmXXJ zd81*yc+r3t@C)YA2>yw=a~_d6hI0%G_#yCp;;aq=3+fSTjl@&rwi=B^;yVllf{ef!_0b=m*KA>$0X`8~ z(wLEGwhDr)rYUH=z_C5E4cTMbt{eDPC76-ORDyGytykMb`vId1im!eUtuy&Mh>nTx z-XZk2fX#fuuo_*(Ig57?syO321UuR(sGTwDFXLJUE0$el3-q{v-DOJ_RDh+i?Bv8R zyE*Y6cJ!m1ToJs*%{5(I5xK?5k8p5B>{oU14$}WEC+}Mp1oJrX2qSQa5w#Ak$wRK4 zaa7y&ldLMzOYlA};Pf>xDv8wqJvI%h)lSDi^Z9|@ett05=|C6FXCNWs?M<`QYUt7t z5tc+g%HuBwn@}i#2`mYQKRR_mm(4t9TUlhbO>K(OKz(*?drd8)1(ON%v;|r^c1raW z%;vW<)m~{`LRL&X3^(GUq-I{VQlPb;f(fF>Bksgd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o-3@1n3S+0z+>qa<3;?ekp!Bm%LMUYQ@R+5xI;JjM?-N( Z|6YGQ{`vfTem=kJ=ReC5&Mp8b006D*K~w+$ diff --git a/wppost/wppost.php b/wppost/wppost.php index 235aa8234..d0e48b73e 100644 --- a/wppost/wppost.php +++ b/wppost/wppost.php @@ -168,9 +168,9 @@ function wppost_send(&$a,&$b) { require_once('include/bbcode.php'); - $post = (($b['title']) ? '' . $b['title'] . '' : ''); - $post .= bbcode($b['body']); - $post = xmlify($post); + $title = '' . (($b['title']) ? $b['title'] : t('Post from Friendica')) . ''; + $post = $title . bbcode($b['body']); + $post = xmlify($post); $xml = <<< EOT