diff --git a/boot.php b/boot.php
index 852b8eef33..1a93086aea 100644
--- a/boot.php
+++ b/boot.php
@@ -14,7 +14,7 @@ require_once('include/features.php');
define ( 'FRIENDICA_PLATFORM', 'Friendica');
define ( 'FRIENDICA_VERSION', '3.1.1586' );
define ( 'DFRN_PROTOCOL_VERSION', '2.23' );
-define ( 'DB_UPDATE_VERSION', 1157 );
+define ( 'DB_UPDATE_VERSION', 1158 );
define ( 'EOL', " \r\n" );
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
@@ -622,7 +622,6 @@ if(! class_exists('App')) {
*/
if(!isset($this->page['htmlhead']))
$this->page['htmlhead'] = '';
- $tpl = get_markup_template('head.tpl');
// If we're using Smarty, then doing replace_macros() will replace
// any unrecognized variables with a blank string. Since we delay
@@ -633,6 +632,7 @@ if(! class_exists('App')) {
else
$stylesheet = '$stylesheet';
+ $tpl = get_markup_template('head.tpl');
$this->page['htmlhead'] = replace_macros($tpl,array(
'$baseurl' => $this->get_baseurl(), // FIXME for z_path!!!!
'$local_user' => local_user(),
@@ -1381,8 +1381,6 @@ if(! function_exists('profile_sidebar')) {
}
- $tpl = get_markup_template('profile_vcard.tpl');
-
$p = array();
foreach($profile as $k => $v) {
$k = str_replace('-','_',$k);
@@ -1392,6 +1390,7 @@ if(! function_exists('profile_sidebar')) {
if($a->theme['template_engine'] === 'internal')
$location = template_escape($location);
+ $tpl = get_markup_template('profile_vcard.tpl');
$o .= replace_macros($tpl, array(
'$profile' => $p,
'$connect' => $connect,
diff --git a/database.sql b/database.sql
index 369637fe60..28a7c931e7 100644
--- a/database.sql
+++ b/database.sql
@@ -241,6 +241,20 @@ CREATE TABLE IF NOT EXISTS `deliverq` (
-- --------------------------------------------------------
+--
+-- Table structure for table `dsprphotoq`
+--
+
+CREATE TABLE `dsprphotoq` (
+ `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
+ `uid` int(11) NOT NULL,
+ `msg` mediumtext NOT NULL,
+ `attempt` tinyint(4) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+
+-- --------------------------------------------------------
+
--
-- Table structure for table `event`
--
diff --git a/include/attach.php b/include/attach.php
index 6d611cec04..079911ffa3 100644
--- a/include/attach.php
+++ b/include/attach.php
@@ -42,6 +42,10 @@ function z_mime_content_type($filename) {
'qt' => 'video/quicktime',
'mov' => 'video/quicktime',
'ogg' => 'application/ogg',
+ 'mp4' => 'video/mp4',
+ 'avi' => 'video/x-msvideo',
+ 'wmv' => 'video/x-ms-wmv',
+ 'wma' => 'audio/x-ms-wma',
// adobe
'pdf' => 'application/pdf',
diff --git a/include/conversation.php b/include/conversation.php
index 9420d8b74a..e659ca04d9 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -877,26 +877,21 @@ function format_like($cnt,$arr,$type,$id) {
if($cnt == 1)
$o .= (($type === 'like') ? sprintf( t('%s likes this.'), $arr[0]) : sprintf( t('%s doesn\'t like this.'), $arr[0])) . EOL ;
else {
- //$spanatts = 'class="fakelink" onclick="openClose(\'' . $type . 'list-' . $id . '\');"';
+ $spanatts = "class=\"fakelink\" onclick=\"openClose('{$type}list-$id');\"";
switch($type) {
case 'like':
-// $phrase = sprintf( t('%2$d people like this.'), $spanatts, $cnt);
- $mood = t('like this');
+ $phrase = sprintf( t('%2$d people like this'), $spanatts, $cnt);
break;
case 'dislike':
-// $phrase = sprintf( t('%2$d people don\'t like this.'), $spanatts, $cnt);
- $mood = t('don\'t like this');
+ $phrase = sprintf( t('%2$d people don\'t like this'), $spanatts, $cnt);
break;
}
- $tpl = get_markup_template("voting_fakelink.tpl");
- $phrase = replace_macros($tpl, array(
- '$vote_id' => $type . 'list-' . $id,
- '$count' => $cnt,
- '$people' => t('people'),
- '$vote_mood' => $mood
+ $phrase .= EOL ;
+ $o .= replace_macros(get_markup_template('voting_fakelink.tpl'), array(
+ '$phrase' => $phrase,
+ '$type' => $type,
+ '$id' => $id
));
- $o .= $phrase;
-// $o .= EOL ;
$total = count($arr);
if($total >= MAX_LIKERS)
diff --git a/include/diaspora.php b/include/diaspora.php
index 3b681e9918..18d37c243e 100755
--- a/include/diaspora.php
+++ b/include/diaspora.php
@@ -16,7 +16,9 @@ function diaspora_dispatch_public($msg) {
return;
}
- $r = q("SELECT `user`.* FROM `user` WHERE `user`.`uid` IN ( SELECT `contact`.`uid` FROM `contact` WHERE `contact`.`network` = '%s' AND `contact`.`addr` = '%s' ) AND `account_expired` = 0 AND `account_removed` = 0 ",
+ $r = q("SELECT `user`.* FROM `user` WHERE `user`.`uid` IN
+ ( SELECT `contact`.`uid` FROM `contact` WHERE `contact`.`network` = '%s' AND `contact`.`addr` = '%s' )
+ AND `account_expired` = 0 AND `account_removed` = 0 ",
dbesc(NETWORK_DIASPORA),
dbesc($msg['author'])
);
@@ -32,7 +34,7 @@ function diaspora_dispatch_public($msg) {
-function diaspora_dispatch($importer,$msg) {
+function diaspora_dispatch($importer,$msg,$attempt=1) {
$ret = 0;
@@ -88,7 +90,7 @@ function diaspora_dispatch($importer,$msg) {
$ret = diaspora_signed_retraction($importer,$xmlbase->relayable_retraction,$msg);
}
elseif($xmlbase->photo) {
- $ret = diaspora_photo($importer,$xmlbase->photo,$msg);
+ $ret = diaspora_photo($importer,$xmlbase->photo,$msg,$attempt);
}
elseif($xmlbase->conversation) {
$ret = diaspora_conversation($importer,$xmlbase->conversation,$msg);
@@ -1655,7 +1657,7 @@ function diaspora_message($importer,$xml,$msg) {
}
-function diaspora_photo($importer,$xml,$msg) {
+function diaspora_photo($importer,$xml,$msg,$attempt=1) {
$a = get_app();
@@ -1693,7 +1695,14 @@ function diaspora_photo($importer,$xml,$msg) {
dbesc($status_message_guid)
);
if(! count($r)) {
- logger('diaspora_photo: parent item not found: parent: ' . $parent_guid . ' item: ' . $guid);
+ if($attempt <= 3) {
+ q("INSERT INTO dsprphotoq (uid, msg, attempt) VALUES (%d, '%s', %d)",
+ intval($importer['uid']),
+ dbesc(serialize($msg)),
+ intval($attempt + 1)
+ );
+ }
+ logger('diaspora_photo: attempt = ' . $attempt . '; status message not found: ' . $status_message_guid . ' for photo: ' . $guid);
return;
}
@@ -2319,13 +2328,15 @@ function diaspora_send_followup($item,$owner,$contact,$public_batch = false) {
$myaddr = $owner['nickname'] . '@' . substr($a->get_baseurl(), strpos($a->get_baseurl(),'://') + 3);
// $theiraddr = $contact['addr'];
- // Diaspora doesn't support threaded comments
- /*if($item['thr-parent']) {
+ // Diaspora doesn't support threaded comments, but some
+ // versions of Diaspora (i.e. Diaspora-pistos) support
+ // likes on comments
+ if($item['verb'] === ACTIVITY_LIKE && $item['thr-parent']) {
$p = q("select guid, type, uri, `parent-uri` from item where uri = '%s' limit 1",
dbesc($item['thr-parent'])
);
}
- else {*/
+ else {
// The first item in the `item` table with the parent id is the parent. However, MySQL doesn't always
// return the items ordered by `item`.`id`, in which case the wrong item is chosen as the parent.
// The only item with `parent` and `id` as the parent id is the parent item.
@@ -2333,7 +2344,7 @@ function diaspora_send_followup($item,$owner,$contact,$public_batch = false) {
intval($item['parent']),
intval($item['parent'])
);
- //}
+ }
if(count($p))
$parent = $p[0];
else
@@ -2395,13 +2406,15 @@ function diaspora_send_relay($item,$owner,$contact,$public_batch = false) {
$body = $item['body'];
$text = html_entity_decode(bb2diaspora($body));
- // Diaspora doesn't support threaded comments
- /*if($item['thr-parent']) {
+ // Diaspora doesn't support threaded comments, but some
+ // versions of Diaspora (i.e. Diaspora-pistos) support
+ // likes on comments
+ if($item['verb'] === ACTIVITY_LIKE && $item['thr-parent']) {
$p = q("select guid, type, uri, `parent-uri` from item where uri = '%s' limit 1",
dbesc($item['thr-parent'])
);
}
- else {*/
+ else {
// The first item in the `item` table with the parent id is the parent. However, MySQL doesn't always
// return the items ordered by `item`.`id`, in which case the wrong item is chosen as the parent.
// The only item with `parent` and `id` as the parent id is the parent item.
@@ -2409,7 +2422,7 @@ function diaspora_send_relay($item,$owner,$contact,$public_batch = false) {
intval($item['parent']),
intval($item['parent'])
);
- //}
+ }
if(count($p))
$parent = $p[0];
else
diff --git a/include/dsprphotoq.php b/include/dsprphotoq.php
new file mode 100644
index 0000000000..06e733d79c
--- /dev/null
+++ b/include/dsprphotoq.php
@@ -0,0 +1,50 @@
+$url)
- if (strpos($message, $url) == false)
+ if (strpos($message, $url) === false)
$message .= "\n".$url." ";
//$message .= "\n[".($counter++)."] ".$url;
}
diff --git a/include/items.php b/include/items.php
index b465c444ed..08127c6eb6 100755
--- a/include/items.php
+++ b/include/items.php
@@ -3732,11 +3732,11 @@ function item_getfeedtags($item) {
function item_getfeedattach($item) {
$ret = '';
- $arr = explode(',',$item['attach']);
+ $arr = explode('[/attach],',$item['attach']);
if(count($arr)) {
foreach($arr as $r) {
$matches = false;
- $cnt = preg_match('|\[attach\]href=\"(.*?)\" length=\"(.*?)\" type=\"(.*?)\" title=\"(.*?)\"\[\/attach\]|',$r,$matches);
+ $cnt = preg_match('|\[attach\]href=\"(.*?)\" length=\"(.*?)\" type=\"(.*?)\" title=\"(.*?)\"|',$r,$matches);
if($cnt) {
$ret .= ' theme_info,"extends") && file_exists($root . "view/theme/".$a->theme_info["extends"]."/$filename"))
- $template_file = $root . "view/theme/".$a->theme_info["extends"]."/$filename";
+ if(file_exists("{$root}view/theme/$theme/$filename"))
+ $template_file = "{$root}view/theme/$theme/$filename";
+ elseif (x($a->theme_info,"extends") && file_exists("{$root}view/theme/{$a->theme_info["extends"]}/$filename"))
+ $template_file = "{$root}view/theme/{$a->theme_info["extends"]}/$filename";
else
- $template_file = $root . "view/$filename";
+ $template_file = "{$root}view/$filename";
return $template_file;
}}
@@ -1041,13 +1041,13 @@ function prepare_body($item,$attach = false) {
return $s;
}
- $arr = explode(',',$item['attach']);
+ $arr = explode('[/attach],',$item['attach']);
if(count($arr)) {
$s .= '
';
foreach($arr as $r) {
$matches = false;
$icon = '';
- $cnt = preg_match_all('|\[attach\]href=\"(.*?)\" length=\"(.*?)\" type=\"(.*?)\" title=\"(.*?)\"\[\/attach\]|',$r,$matches, PREG_SET_ORDER);
+ $cnt = preg_match_all('|\[attach\]href=\"(.*?)\" length=\"(.*?)\" type=\"(.*?)\" title=\"(.*?)\"|',$r,$matches, PREG_SET_ORDER);
if($cnt) {
foreach($matches as $mtch) {
$icontype = strtolower(substr($mtch[3],0,strpos($mtch[3],'/')));
diff --git a/js/acl.js b/js/acl.js
index abdab97da1..fc6a6c0c1d 100644
--- a/js/acl.js
+++ b/js/acl.js
@@ -253,7 +253,7 @@ ACL.prototype.populate = function(data){
//console.log(html);
that.list_content.append(html);
});
- $(".acl-list-item[rel!=acl-template] img[data-src]").each(function(i, el){
+ $(".acl-list-item img[data-src]", that.list_content).each(function(i, el){
// Add src attribute for images with a data-src attribute
$(el).attr('src', $(el).data("src"));
});
diff --git a/js/acl.min.js b/js/acl.min.js
index 74904a02c0..b3ad459e96 100644
--- a/js/acl.min.js
+++ b/js/acl.min.js
@@ -1 +1 @@
-function ACL(e,t){that=this,that.url=e,that.kp_timer=null,t==undefined&&(t=[]),that.allow_cid=t[0]||[],that.allow_gid=t[1]||[],that.deny_cid=t[2]||[],that.deny_gid=t[3]||[],that.group_uids=[],that.nw=4,that.list_content=$("#acl-list-content"),that.item_tpl=unescape($(".acl-list-item[rel=acl-template]").html()),that.showall=$("#acl-showall"),t.length==0&&that.showall.addClass("selected"),that.showall.click(that.on_showall),$(".acl-button-show").live("click",that.on_button_show),$(".acl-button-hide").live("click",that.on_button_hide),$("#acl-search").keypress(that.on_search),$("#acl-wrapper").parents("form").submit(that.on_submit),that.get(0,100)}ACL.prototype.on_submit=function(){aclfileds=$("#acl-fields").html(""),$(that.allow_gid).each(function(e,t){aclfileds.append("
")}),$(that.allow_cid).each(function(e,t){aclfileds.append("
")}),$(that.deny_gid).each(function(e,t){aclfileds.append("
")}),$(that.deny_cid).each(function(e,t){aclfileds.append("
")})},ACL.prototype.search=function(){var e=$("#acl-search").val();that.list_content.html(""),that.get(0,100,e)},ACL.prototype.on_search=function(e){that.kp_timer&&clearTimeout(that.kp_timer),that.kp_timer=setTimeout(that.search,1e3)},ACL.prototype.on_showall=function(e){return e.preventDefault(),e.stopPropagation(),that.showall.hasClass("selected")?!1:(that.showall.addClass("selected"),that.allow_cid=[],that.allow_gid=[],that.deny_cid=[],that.deny_gid=[],that.update_view(),!1)},ACL.prototype.on_button_show=function(e){return e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation(),that.set_allow($(this).parent().attr("id")),!1},ACL.prototype.on_button_hide=function(e){return e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation(),that.set_deny($(this).parent().attr("id")),!1},ACL.prototype.set_allow=function(e){type=e[0],id=parseInt(e.substr(1));switch(type){case"g":that.allow_gid.indexOf(id)<0?that.allow_gid.push(id):that.allow_gid.remove(id),that.deny_gid.indexOf(id)>=0&&that.deny_gid.remove(id);break;case"c":that.allow_cid.indexOf(id)<0?that.allow_cid.push(id):that.allow_cid.remove(id),that.deny_cid.indexOf(id)>=0&&that.deny_cid.remove(id)}that.update_view()},ACL.prototype.set_deny=function(e){type=e[0],id=parseInt(e.substr(1));switch(type){case"g":that.deny_gid.indexOf(id)<0?that.deny_gid.push(id):that.deny_gid.remove(id),that.allow_gid.indexOf(id)>=0&&that.allow_gid.remove(id);break;case"c":that.deny_cid.indexOf(id)<0?that.deny_cid.push(id):that.deny_cid.remove(id),that.allow_cid.indexOf(id)>=0&&that.allow_cid.remove(id)}that.update_view()},ACL.prototype.update_view=function(){that.allow_gid.length==0&&that.allow_cid.length==0&&that.deny_gid.length==0&&that.deny_cid.length==0?(that.showall.addClass("selected"),$("#jot-perms-icon").removeClass("lock").addClass("unlock"),$("#jot-public").show(),$(".profile-jot-net input").attr("disabled",!1),typeof editor!="undefined"&&editor!=0&&$("#profile-jot-desc").html(ispublic)):(that.showall.removeClass("selected"),$("#jot-perms-icon").removeClass("unlock").addClass("lock"),$("#jot-public").hide(),$(".profile-jot-net input").attr("disabled","disabled"),$("#profile-jot-desc").html(" ")),$("#acl-list-content .acl-list-item").each(function(){$(this).removeClass("groupshow grouphide")}),$("#acl-list-content .acl-list-item").each(function(){itemid=$(this).attr("id"),type=itemid[0],id=parseInt(itemid.substr(1)),btshow=$(this).children(".acl-button-show").removeClass("selected"),bthide=$(this).children(".acl-button-hide").removeClass("selected");switch(type){case"g":var e="";that.allow_gid.indexOf(id)>=0&&(btshow.addClass("selected"),bthide.removeClass("selected"),e="groupshow"),that.deny_gid.indexOf(id)>=0&&(btshow.removeClass("selected"),bthide.addClass("selected"),e="grouphide"),$(that.group_uids[id]).each(function(t,n){e=="grouphide"&&$("#c"+n).removeClass("groupshow");if(e!=""){var r=$("#c"+n).attr("class");if(r==undefined)return!0;var i=r.indexOf("grouphide");i==-1&&$("#c"+n).addClass(e)}});break;case"c":that.allow_cid.indexOf(id)>=0&&(btshow.addClass("selected"),bthide.removeClass("selected")),that.deny_cid.indexOf(id)>=0&&(btshow.removeClass("selected"),bthide.addClass("selected"))}})},ACL.prototype.get=function(e,t,n){var r={start:e,count:t,search:n};$.ajax({type:"POST",url:that.url,data:r,dataType:"json",success:that.populate})},ACL.prototype.populate=function(e){var t=Math.ceil(e.tot/that.nw)*42;that.list_content.height(t),$(e.items).each(function(){html="
"+that.item_tpl+"
",html=html.format(this.photo,this.name,this.type,this.id,"",this.network,this.link),this.uids!=undefined&&(that.group_uids[this.id]=this.uids),that.list_content.append(html)}),that.update_view()};
\ No newline at end of file
+function ACL(backend_url,preset){that=this;that.url=backend_url;that.kp_timer=null;if(preset==undefined)preset=[];that.allow_cid=preset[0]||[];that.allow_gid=preset[1]||[];that.deny_cid=preset[2]||[];that.deny_gid=preset[3]||[];that.group_uids=[];that.nw=4;that.list_content=$("#acl-list-content");that.item_tpl=unescape($(".acl-list-item[rel=acl-template]").html());that.showall=$("#acl-showall");if(preset.length==0)that.showall.addClass("selected");that.showall.click(that.on_showall);$(".acl-button-show").live("click",that.on_button_show);$(".acl-button-hide").live("click",that.on_button_hide);$("#acl-search").keypress(that.on_search);$("#acl-wrapper").parents("form").submit(that.on_submit);that.get(0,100)}ACL.prototype.on_submit=function(){aclfileds=$("#acl-fields").html("");$(that.allow_gid).each(function(i,v){aclfileds.append("
")});$(that.allow_cid).each(function(i,v){aclfileds.append("
")});$(that.deny_gid).each(function(i,v){aclfileds.append("
")});$(that.deny_cid).each(function(i,v){aclfileds.append("
")})};ACL.prototype.search=function(){var srcstr=$("#acl-search").val();that.list_content.html("");that.get(0,100,srcstr)};ACL.prototype.on_search=function(event){if(that.kp_timer)clearTimeout(that.kp_timer);that.kp_timer=setTimeout(that.search,1e3)};ACL.prototype.on_showall=function(event){event.preventDefault();event.stopPropagation();if(that.showall.hasClass("selected")){return false}that.showall.addClass("selected");that.allow_cid=[];that.allow_gid=[];that.deny_cid=[];that.deny_gid=[];that.update_view();return false};ACL.prototype.on_button_show=function(event){event.preventDefault();event.stopImmediatePropagation();event.stopPropagation();that.set_allow($(this).parent().attr("id"));return false};ACL.prototype.on_button_hide=function(event){event.preventDefault();event.stopImmediatePropagation();event.stopPropagation();that.set_deny($(this).parent().attr("id"));return false};ACL.prototype.set_allow=function(itemid){type=itemid[0];id=parseInt(itemid.substr(1));switch(type){case"g":if(that.allow_gid.indexOf(id)<0){that.allow_gid.push(id)}else{that.allow_gid.remove(id)}if(that.deny_gid.indexOf(id)>=0)that.deny_gid.remove(id);break;case"c":if(that.allow_cid.indexOf(id)<0){that.allow_cid.push(id)}else{that.allow_cid.remove(id)}if(that.deny_cid.indexOf(id)>=0)that.deny_cid.remove(id);break}that.update_view()};ACL.prototype.set_deny=function(itemid){type=itemid[0];id=parseInt(itemid.substr(1));switch(type){case"g":if(that.deny_gid.indexOf(id)<0){that.deny_gid.push(id)}else{that.deny_gid.remove(id)}if(that.allow_gid.indexOf(id)>=0)that.allow_gid.remove(id);break;case"c":if(that.deny_cid.indexOf(id)<0){that.deny_cid.push(id)}else{that.deny_cid.remove(id)}if(that.allow_cid.indexOf(id)>=0)that.allow_cid.remove(id);break}that.update_view()};ACL.prototype.update_view=function(){if(that.allow_gid.length==0&&that.allow_cid.length==0&&that.deny_gid.length==0&&that.deny_cid.length==0){that.showall.addClass("selected");$("#jot-perms-icon").removeClass("lock").addClass("unlock");$("#jot-public").show();$(".profile-jot-net input").attr("disabled",false);if(typeof editor!="undefined"&&editor!=false){$("#profile-jot-desc").html(ispublic)}}else{that.showall.removeClass("selected");$("#jot-perms-icon").removeClass("unlock").addClass("lock");$("#jot-public").hide();$(".profile-jot-net input").attr("disabled","disabled");$("#profile-jot-desc").html(" ")}$("#acl-list-content .acl-list-item").each(function(){$(this).removeClass("groupshow grouphide")});$("#acl-list-content .acl-list-item").each(function(){itemid=$(this).attr("id");type=itemid[0];id=parseInt(itemid.substr(1));btshow=$(this).children(".acl-button-show").removeClass("selected");bthide=$(this).children(".acl-button-hide").removeClass("selected");switch(type){case"g":var uclass="";if(that.allow_gid.indexOf(id)>=0){btshow.addClass("selected");bthide.removeClass("selected");uclass="groupshow"}if(that.deny_gid.indexOf(id)>=0){btshow.removeClass("selected");bthide.addClass("selected");uclass="grouphide"}$(that.group_uids[id]).each(function(i,v){if(uclass=="grouphide")$("#c"+v).removeClass("groupshow");if(uclass!=""){var cls=$("#c"+v).attr("class");if(cls==undefined)return true;var hiding=cls.indexOf("grouphide");if(hiding==-1)$("#c"+v).addClass(uclass)}});break;case"c":if(that.allow_cid.indexOf(id)>=0){btshow.addClass("selected");bthide.removeClass("selected")}if(that.deny_cid.indexOf(id)>=0){btshow.removeClass("selected");bthide.addClass("selected")}}})};ACL.prototype.get=function(start,count,search){var postdata={start:start,count:count,search:search};$.ajax({type:"POST",url:that.url,data:postdata,dataType:"json",success:that.populate})};ACL.prototype.populate=function(data){var height=Math.ceil(data.tot/that.nw)*42;that.list_content.height(height);$(data.items).each(function(){html="
"+that.item_tpl+"
";html=html.format(this.photo,this.name,this.type,this.id,"",this.network,this.link);if(this.uids!=undefined)that.group_uids[this.id]=this.uids;that.list_content.append(html)});$(".acl-list-item img[data-src]",that.list_content).each(function(i,el){$(el).attr("src",$(el).data("src"))});that.update_view()};
\ No newline at end of file
diff --git a/mod/attach.php b/mod/attach.php
index ae6540201e..76d60a6907 100644
--- a/mod/attach.php
+++ b/mod/attach.php
@@ -34,9 +34,11 @@ function attach_init(&$a) {
return;
}
+ // Use quotes around the filename to prevent a "multiple Content-Disposition"
+ // error in Chrome for filenames with commas in them
header('Content-type: ' . $r[0]['filetype']);
- header('Content-disposition: attachment; filename=' . $r[0]['filename']);
+ header('Content-disposition: attachment; filename="' . $r[0]['filename'] . '"');
echo $r[0]['data'];
killme();
// NOTREACHED
-}
\ No newline at end of file
+}
diff --git a/mod/babel.php b/mod/babel.php
index ca2c068f8e..d31e090c55 100644
--- a/mod/babel.php
+++ b/mod/babel.php
@@ -11,7 +11,7 @@ function visible_lf($s) {
function babel_content(&$a) {
- $o .= '
Babel Diagnostic ';
+ $o .= '
Babel Diagnostic ';
$o .= '
-{{ if $groupedit_info }}
+{{ if $groupeditor }}
- {{ inc groupeditor.tpl with $groupeditor=$groupedit_info }}{{ endinc }}
+ {{ inc groupeditor.tpl }}{{ endinc }}
{{ endif }}
{{ if $desc }}$desc
{{ endif }}
diff --git a/view/is/smarty3/follow_notify_eml.tpl b/view/is/smarty3/follow_notify_eml.tpl
index 127f05a457..e96380112c 100644
--- a/view/is/smarty3/follow_notify_eml.tpl
+++ b/view/is/smarty3/follow_notify_eml.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
Góðan daginn {{$myname}},
diff --git a/view/is/smarty3/friend_complete_eml.tpl b/view/is/smarty3/friend_complete_eml.tpl
index 1bc440269e..5bdbeff51b 100644
--- a/view/is/smarty3/friend_complete_eml.tpl
+++ b/view/is/smarty3/friend_complete_eml.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
Góðan daginn {{$username}},
diff --git a/view/is/smarty3/intro_complete_eml.tpl b/view/is/smarty3/intro_complete_eml.tpl
index bbf86cf157..11b6bbd466 100644
--- a/view/is/smarty3/intro_complete_eml.tpl
+++ b/view/is/smarty3/intro_complete_eml.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
Góðan daginn {{$username}},
diff --git a/view/is/smarty3/lostpass_eml.tpl b/view/is/smarty3/lostpass_eml.tpl
index d2010ac8fe..a6f83ed51e 100644
--- a/view/is/smarty3/lostpass_eml.tpl
+++ b/view/is/smarty3/lostpass_eml.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
Góðan dag {{$username}},
Beiðni barst á {{$sitename}} um að endursetja
diff --git a/view/is/smarty3/passchanged_eml.tpl b/view/is/smarty3/passchanged_eml.tpl
index c19551208e..6d08a07636 100644
--- a/view/is/smarty3/passchanged_eml.tpl
+++ b/view/is/smarty3/passchanged_eml.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
Góðan daginn {{$username}},
Lykilorð þínu hefur verið breytt einsog umbeðið var. Endilega geyma þessar
diff --git a/view/is/smarty3/register_open_eml.tpl b/view/is/smarty3/register_open_eml.tpl
index 0673224d1f..8ab04b3aed 100644
--- a/view/is/smarty3/register_open_eml.tpl
+++ b/view/is/smarty3/register_open_eml.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
Góðan daginn {{$username}},
Takk fyrir að skrá þig á {{$sitename}}. Notandinn þinn hefur verið stofnaður.
diff --git a/view/is/smarty3/register_verify_eml.tpl b/view/is/smarty3/register_verify_eml.tpl
index cf6362c4b7..1e6060df9b 100644
--- a/view/is/smarty3/register_verify_eml.tpl
+++ b/view/is/smarty3/register_verify_eml.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
Beiðni um nýjan notanda barst {{$sitename}} sem krefst
þíns samþykkis.
diff --git a/view/is/smarty3/request_notify_eml.tpl b/view/is/smarty3/request_notify_eml.tpl
index 36d8f217af..6ecec12f3a 100644
--- a/view/is/smarty3/request_notify_eml.tpl
+++ b/view/is/smarty3/request_notify_eml.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
Góðan dag {{$myname}},
diff --git a/view/is/smarty3/update_fail_eml.tpl b/view/is/smarty3/update_fail_eml.tpl
index 201f87131d..227ee288ba 100644
--- a/view/is/smarty3/update_fail_eml.tpl
+++ b/view/is/smarty3/update_fail_eml.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
Hæ,
Ég er {{$sitename}}.
Þróunarteymi friendica gáfu nýlega út uppfærslu {{$update}},
diff --git a/view/it/smarty3/cmnt_received_eml.tpl b/view/it/smarty3/cmnt_received_eml.tpl
index f35dc3dc9f..479c566ded 100644
--- a/view/it/smarty3/cmnt_received_eml.tpl
+++ b/view/it/smarty3/cmnt_received_eml.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
Caro/a {{$username}},
diff --git a/view/it/smarty3/cmnt_received_html_body_eml.tpl b/view/it/smarty3/cmnt_received_html_body_eml.tpl
index 80d6118073..356e3bc480 100644
--- a/view/it/smarty3/cmnt_received_html_body_eml.tpl
+++ b/view/it/smarty3/cmnt_received_html_body_eml.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
diff --git a/view/it/smarty3/cmnt_received_text_body_eml.tpl b/view/it/smarty3/cmnt_received_text_body_eml.tpl
index f35dc3dc9f..479c566ded 100644
--- a/view/it/smarty3/cmnt_received_text_body_eml.tpl
+++ b/view/it/smarty3/cmnt_received_text_body_eml.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
Caro/a {{$username}},
diff --git a/view/it/smarty3/follow_notify_eml.tpl b/view/it/smarty3/follow_notify_eml.tpl
index 0bfc375520..925d5b2d08 100644
--- a/view/it/smarty3/follow_notify_eml.tpl
+++ b/view/it/smarty3/follow_notify_eml.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
Ciao {{$myname}},
diff --git a/view/it/smarty3/friend_complete_eml.tpl b/view/it/smarty3/friend_complete_eml.tpl
index daeaae9016..667a1f445e 100644
--- a/view/it/smarty3/friend_complete_eml.tpl
+++ b/view/it/smarty3/friend_complete_eml.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
Ciao {{$username}},
diff --git a/view/it/smarty3/htconfig.tpl b/view/it/smarty3/htconfig.tpl
index 5696245c77..f5796445b5 100644
--- a/view/it/smarty3/htconfig.tpl
+++ b/view/it/smarty3/htconfig.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
diff --git a/view/it/smarty3/mail_received_text_body_eml.tpl b/view/it/smarty3/mail_received_text_body_eml.tpl
index 79e133fcef..3cb7b82d48 100644
--- a/view/it/smarty3/mail_received_text_body_eml.tpl
+++ b/view/it/smarty3/mail_received_text_body_eml.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
Hai ricevuto un nuovo messsaggio privato su {{$siteName}} da '{{$from}}'.
{{$title}}
diff --git a/view/it/smarty3/passchanged_eml.tpl b/view/it/smarty3/passchanged_eml.tpl
index 046588e1f2..32970c9cb5 100644
--- a/view/it/smarty3/passchanged_eml.tpl
+++ b/view/it/smarty3/passchanged_eml.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
Ciao {{$username}},
La tua password è cambiata come hai richiesto. Conserva queste
diff --git a/view/it/smarty3/register_open_eml.tpl b/view/it/smarty3/register_open_eml.tpl
index 23dcaf2c8d..e5f909af57 100644
--- a/view/it/smarty3/register_open_eml.tpl
+++ b/view/it/smarty3/register_open_eml.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
Ciao {{$username}},
Grazie per aver effettuato la registrazione a {{$sitename}}. Il tuo account è stato creato.
diff --git a/view/it/smarty3/register_verify_eml.tpl b/view/it/smarty3/register_verify_eml.tpl
index 743370b3df..9ce1f8f005 100644
--- a/view/it/smarty3/register_verify_eml.tpl
+++ b/view/it/smarty3/register_verify_eml.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
Su {{$sitename}} è stata ricevuta una nuova richiesta di registrazione da parte di un utente che richiede
la tua approvazione.
diff --git a/view/it/smarty3/request_notify_eml.tpl b/view/it/smarty3/request_notify_eml.tpl
index df3a7323c1..47240c5a36 100644
--- a/view/it/smarty3/request_notify_eml.tpl
+++ b/view/it/smarty3/request_notify_eml.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
Ciao {{$myname}},
diff --git a/view/it/smarty3/wall_received_eml.tpl b/view/it/smarty3/wall_received_eml.tpl
index 909ec86d44..30b53d11ef 100644
--- a/view/it/smarty3/wall_received_eml.tpl
+++ b/view/it/smarty3/wall_received_eml.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
Caro/a {{$username}},
diff --git a/view/it/smarty3/wall_received_html_body_eml.tpl b/view/it/smarty3/wall_received_html_body_eml.tpl
index 3fa724c3bc..8096fed226 100644
--- a/view/it/smarty3/wall_received_html_body_eml.tpl
+++ b/view/it/smarty3/wall_received_html_body_eml.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
diff --git a/view/it/smarty3/wall_received_text_body_eml.tpl b/view/it/smarty3/wall_received_text_body_eml.tpl
index ad7f83abcb..2031744a64 100644
--- a/view/it/smarty3/wall_received_text_body_eml.tpl
+++ b/view/it/smarty3/wall_received_text_body_eml.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
Caro {{$username}},
diff --git a/view/mail_display.tpl b/view/mail_display.tpl
index 396aa46c0a..b328d32a27 100644
--- a/view/mail_display.tpl
+++ b/view/mail_display.tpl
@@ -1,6 +1,6 @@
-{{ for $mails as $mail_item }}
- {{ inc mail_conv.tpl with $mail=$mail_item }}{{endinc}}
+{{ for $mails as $mail }}
+ {{ inc mail_conv.tpl }}{{endinc}}
{{ endfor }}
{{ if $canreply }}
diff --git a/view/nb-no/smarty3/follow_notify_eml.tpl b/view/nb-no/smarty3/follow_notify_eml.tpl
index 094539cf5b..eedeef85de 100644
--- a/view/nb-no/smarty3/follow_notify_eml.tpl
+++ b/view/nb-no/smarty3/follow_notify_eml.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
Kjære {{$myname}},
diff --git a/view/nb-no/smarty3/friend_complete_eml.tpl b/view/nb-no/smarty3/friend_complete_eml.tpl
index 17cc38a8ca..f8348c51d5 100644
--- a/view/nb-no/smarty3/friend_complete_eml.tpl
+++ b/view/nb-no/smarty3/friend_complete_eml.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
Kjære {{$username}},
diff --git a/view/nb-no/smarty3/intro_complete_eml.tpl b/view/nb-no/smarty3/intro_complete_eml.tpl
index edf699936e..e00d99f8ba 100644
--- a/view/nb-no/smarty3/intro_complete_eml.tpl
+++ b/view/nb-no/smarty3/intro_complete_eml.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
Kjære {{$username}},
diff --git a/view/nb-no/smarty3/lostpass_eml.tpl b/view/nb-no/smarty3/lostpass_eml.tpl
index e0f335ff18..11ef4aab7d 100644
--- a/view/nb-no/smarty3/lostpass_eml.tpl
+++ b/view/nb-no/smarty3/lostpass_eml.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
Kjære {{$username}},
En forespørsel ble nylig mottatt hos {{$sitename}} om å tilbakestille din kontos
diff --git a/view/nb-no/smarty3/passchanged_eml.tpl b/view/nb-no/smarty3/passchanged_eml.tpl
index 2d3144bc52..d5137fc47d 100644
--- a/view/nb-no/smarty3/passchanged_eml.tpl
+++ b/view/nb-no/smarty3/passchanged_eml.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
Kjære {{$username}},
Ditt passord har blitt endret som forespurt. Vennligst ta vare på denne
diff --git a/view/nb-no/smarty3/register_open_eml.tpl b/view/nb-no/smarty3/register_open_eml.tpl
index 7fe8e5983f..43b150da85 100644
--- a/view/nb-no/smarty3/register_open_eml.tpl
+++ b/view/nb-no/smarty3/register_open_eml.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
Kjære {{$username}},
Takk for at du registrerte deg hos {{$sitename}}. Kontoen din er opprettet.
diff --git a/view/nb-no/smarty3/register_verify_eml.tpl b/view/nb-no/smarty3/register_verify_eml.tpl
index 9efb9b08b6..4b765885e1 100644
--- a/view/nb-no/smarty3/register_verify_eml.tpl
+++ b/view/nb-no/smarty3/register_verify_eml.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
En ny forespørsel om brukerregistering ble mottatt hos {{$sitename}} og krever
din godkjenning.
diff --git a/view/nb-no/smarty3/request_notify_eml.tpl b/view/nb-no/smarty3/request_notify_eml.tpl
index ae89c6141c..9851b4f170 100644
--- a/view/nb-no/smarty3/request_notify_eml.tpl
+++ b/view/nb-no/smarty3/request_notify_eml.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
Kjære {{$myname}},
diff --git a/view/nb-no/smarty3/update_fail_eml.tpl b/view/nb-no/smarty3/update_fail_eml.tpl
index 1116f2cd7d..771d4b97f3 100644
--- a/view/nb-no/smarty3/update_fail_eml.tpl
+++ b/view/nb-no/smarty3/update_fail_eml.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
Hei,
jeg er {{$sitename}}.
Friendica-utviklerne slapp nylig oppdateringen {{$update}},
diff --git a/view/nogroup-template.tpl b/view/nogroup-template.tpl
index f27f158f5d..dd00ed097a 100644
--- a/view/nogroup-template.tpl
+++ b/view/nogroup-template.tpl
@@ -1,7 +1,7 @@
$header
-{{ for $contacts as $c }}
- {{ inc contact_template.tpl with $contact=$c }}{{ endinc }}
+{{ for $contacts as $contact }}
+ {{ inc contact_template.tpl }}{{ endinc }}
{{ endfor }}
diff --git a/view/photos_recent.tpl b/view/photos_recent.tpl
index 7ae3540245..1df78cb7be 100644
--- a/view/photos_recent.tpl
+++ b/view/photos_recent.tpl
@@ -4,8 +4,8 @@
{{ endif }}
-{{ for $photos as $ph }}
- {{ inc photo_top.tpl with $photo=$ph }}{{ endinc }}
+{{ for $photos as $photo }}
+ {{ inc photo_top.tpl }}{{ endinc }}
{{ endfor }}
diff --git a/view/pl/smarty3/follow_notify_eml.tpl b/view/pl/smarty3/follow_notify_eml.tpl
index 0fdbbf49fe..50058ee93b 100644
--- a/view/pl/smarty3/follow_notify_eml.tpl
+++ b/view/pl/smarty3/follow_notify_eml.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
Drogi {{$myname}},
diff --git a/view/pl/smarty3/friend_complete_eml.tpl b/view/pl/smarty3/friend_complete_eml.tpl
index 12918b6b69..bfa196ed07 100644
--- a/view/pl/smarty3/friend_complete_eml.tpl
+++ b/view/pl/smarty3/friend_complete_eml.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
Drogi {{$username}},
diff --git a/view/pl/smarty3/intro_complete_eml.tpl b/view/pl/smarty3/intro_complete_eml.tpl
index 55dc1d78ea..0463861d59 100644
--- a/view/pl/smarty3/intro_complete_eml.tpl
+++ b/view/pl/smarty3/intro_complete_eml.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
Drogi {{$username}},
diff --git a/view/pl/smarty3/lostpass_eml.tpl b/view/pl/smarty3/lostpass_eml.tpl
index 7d5240cfa3..c4c69a13ff 100644
--- a/view/pl/smarty3/lostpass_eml.tpl
+++ b/view/pl/smarty3/lostpass_eml.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
{{$username}},
Ze strony {{$sitename}} wpłynęła prośba z zresetowanie
diff --git a/view/pl/smarty3/passchanged_eml.tpl b/view/pl/smarty3/passchanged_eml.tpl
index b8ba39cdf6..20d6524850 100644
--- a/view/pl/smarty3/passchanged_eml.tpl
+++ b/view/pl/smarty3/passchanged_eml.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
Drogi {{$username}},
Twoje hasło zostało zmienione. Zachowaj tę
diff --git a/view/pl/smarty3/register_open_eml.tpl b/view/pl/smarty3/register_open_eml.tpl
index 604ebfacc3..3a56f3c149 100644
--- a/view/pl/smarty3/register_open_eml.tpl
+++ b/view/pl/smarty3/register_open_eml.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
Drogi {{$username}},
Dziękujemy za rejestrację na {{$sitename}}. Twoje konto zostało utworzone pomyślnie.
diff --git a/view/pl/smarty3/register_verify_eml.tpl b/view/pl/smarty3/register_verify_eml.tpl
index 017e0ec0be..ed7df4471c 100644
--- a/view/pl/smarty3/register_verify_eml.tpl
+++ b/view/pl/smarty3/register_verify_eml.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
Nowy wniosek o rejestrację użytkownika wpłynął na {{$sitename}} i wymaga
potwierdzenia.
diff --git a/view/pl/smarty3/request_notify_eml.tpl b/view/pl/smarty3/request_notify_eml.tpl
index ea31ca8769..dfa978ee38 100644
--- a/view/pl/smarty3/request_notify_eml.tpl
+++ b/view/pl/smarty3/request_notify_eml.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
Drogi/a {{$myname}},
diff --git a/view/pl/smarty3/update_fail_eml.tpl b/view/pl/smarty3/update_fail_eml.tpl
index 809fd552ec..02fe940885 100644
--- a/view/pl/smarty3/update_fail_eml.tpl
+++ b/view/pl/smarty3/update_fail_eml.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
Hey,
Jestem {{$sitename}}.
Deweloperzy friendica wydali ostatnio aktualizację {{$update}},
diff --git a/view/poco_xml.tpl b/view/poco_xml.tpl
index 394f6afcf8..9549b695d1 100644
--- a/view/poco_xml.tpl
+++ b/view/poco_xml.tpl
@@ -9,8 +9,8 @@
{{ if $response.totalResults }}
-{{ for $response.entry as $ent }}
-{{ inc poco_entry_xml.tpl with $entry=$ent }}{{ endinc }}
+{{ for $response.entry as $entry }}
+{{ inc poco_entry_xml.tpl }}{{ endinc }}
{{ endfor }}
{{ else }}
diff --git a/view/pt-br/smarty3/intro_complete_eml.tpl b/view/pt-br/smarty3/intro_complete_eml.tpl
index 3689d653c2..efe1e6b5ac 100644
--- a/view/pt-br/smarty3/intro_complete_eml.tpl
+++ b/view/pt-br/smarty3/intro_complete_eml.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
Prezado/a {{$username}},
diff --git a/view/pt-br/smarty3/update_fail_eml.tpl b/view/pt-br/smarty3/update_fail_eml.tpl
index f8f5e2ef20..fbf123475b 100644
--- a/view/pt-br/smarty3/update_fail_eml.tpl
+++ b/view/pt-br/smarty3/update_fail_eml.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
Oi,
Eu sou {{$sitename}}
Os desenvolvedores do friendica lançaram uma atualização {{$update}} recentemente,
diff --git a/view/smarty3/404.tpl b/view/smarty3/404.tpl
index 518ad1d290..2d581ab8da 100644
--- a/view/smarty3/404.tpl
+++ b/view/smarty3/404.tpl
@@ -1 +1,6 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
{{$message}}
diff --git a/view/smarty3/acl_selector.tpl b/view/smarty3/acl_selector.tpl
index e9f8030d7c..5fd11e7569 100644
--- a/view/smarty3/acl_selector.tpl
+++ b/view/smarty3/acl_selector.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
{{$showall}}
diff --git a/view/smarty3/admin_aside.tpl b/view/smarty3/admin_aside.tpl
index a9d26a89f0..24f07e28e6 100644
--- a/view/smarty3/admin_aside.tpl
+++ b/view/smarty3/admin_aside.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
diff --git a/view/smarty3/contacts-template.tpl b/view/smarty3/contacts-template.tpl
index de074fc3c4..66f3f5c87b 100644
--- a/view/smarty3/contacts-template.tpl
+++ b/view/smarty3/contacts-template.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
{{$header}}{{if $total}} ({{$total}}){{/if}}
{{if $finding}}
{{$finding}} {{/if}}
@@ -14,8 +19,8 @@
{{$tabs}}
-{{foreach $contacts as $c}}
- {{include file="contact_template.tpl" contact=$c}}
+{{foreach $contacts as $contact}}
+ {{include file="contact_template.tpl"}}
{{/foreach}}
diff --git a/view/smarty3/contacts-widget-sidebar.tpl b/view/smarty3/contacts-widget-sidebar.tpl
index d7b9c4b5d5..c4697a91c5 100644
--- a/view/smarty3/contacts-widget-sidebar.tpl
+++ b/view/smarty3/contacts-widget-sidebar.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
{{$vcard_widget}}
{{$follow_widget}}
{{$groups_widget}}
diff --git a/view/smarty3/content.tpl b/view/smarty3/content.tpl
index 466045d396..811f92dd56 100644
--- a/view/smarty3/content.tpl
+++ b/view/smarty3/content.tpl
@@ -1,2 +1,7 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
diff --git a/view/smarty3/conversation.tpl b/view/smarty3/conversation.tpl
index ae5294a9ae..24f0d120d5 100644
--- a/view/smarty3/conversation.tpl
+++ b/view/smarty3/conversation.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
{{$live_update}}
{{foreach $threads as $thread}}
diff --git a/view/smarty3/crepair.tpl b/view/smarty3/crepair.tpl
index 2a05b96788..8d3ed7df89 100644
--- a/view/smarty3/crepair.tpl
+++ b/view/smarty3/crepair.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
diff --git a/view/smarty3/cropbody.tpl b/view/smarty3/cropbody.tpl
index da5b1e8593..e6fcd355f4 100644
--- a/view/smarty3/cropbody.tpl
+++ b/view/smarty3/cropbody.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
{{$title}}
{{$desc}}
diff --git a/view/smarty3/cropend.tpl b/view/smarty3/cropend.tpl
index e69de29bb2..a7fb961089 100644
--- a/view/smarty3/cropend.tpl
+++ b/view/smarty3/cropend.tpl
@@ -0,0 +1,5 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
diff --git a/view/smarty3/crophead.tpl b/view/smarty3/crophead.tpl
index 48f3754265..d51b87d12f 100644
--- a/view/smarty3/crophead.tpl
+++ b/view/smarty3/crophead.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
diff --git a/view/smarty3/delegate.tpl b/view/smarty3/delegate.tpl
index cbaa8da860..7aa85cf395 100644
--- a/view/smarty3/delegate.tpl
+++ b/view/smarty3/delegate.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
{{$header}}
{{$desc}}
diff --git a/view/smarty3/dfrn_req_confirm.tpl b/view/smarty3/dfrn_req_confirm.tpl
index 655af22d41..c941a201da 100644
--- a/view/smarty3/dfrn_req_confirm.tpl
+++ b/view/smarty3/dfrn_req_confirm.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
{{$welcome}}
diff --git a/view/smarty3/dfrn_request.tpl b/view/smarty3/dfrn_request.tpl
index aa5cbd6e46..29173a1d77 100644
--- a/view/smarty3/dfrn_request.tpl
+++ b/view/smarty3/dfrn_request.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
{{$header}}
diff --git a/view/smarty3/diasp_dec_hdr.tpl b/view/smarty3/diasp_dec_hdr.tpl
index 636ff7bd0e..c3305ecd0b 100644
--- a/view/smarty3/diasp_dec_hdr.tpl
+++ b/view/smarty3/diasp_dec_hdr.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
{{$inner_iv}}
{{$inner_key}}
diff --git a/view/smarty3/diaspora_comment.tpl b/view/smarty3/diaspora_comment.tpl
index 27ec3dffce..8df3842d0b 100644
--- a/view/smarty3/diaspora_comment.tpl
+++ b/view/smarty3/diaspora_comment.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
diff --git a/view/smarty3/diaspora_comment_relay.tpl b/view/smarty3/diaspora_comment_relay.tpl
index 37a9e88b3a..c01441e3c1 100644
--- a/view/smarty3/diaspora_comment_relay.tpl
+++ b/view/smarty3/diaspora_comment_relay.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
diff --git a/view/smarty3/diaspora_conversation.tpl b/view/smarty3/diaspora_conversation.tpl
index dc4482e4b0..fd11b826a9 100644
--- a/view/smarty3/diaspora_conversation.tpl
+++ b/view/smarty3/diaspora_conversation.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
diff --git a/view/smarty3/diaspora_like.tpl b/view/smarty3/diaspora_like.tpl
index b03aef37a1..1d58d5d3f3 100644
--- a/view/smarty3/diaspora_like.tpl
+++ b/view/smarty3/diaspora_like.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
diff --git a/view/smarty3/diaspora_like_relay.tpl b/view/smarty3/diaspora_like_relay.tpl
index 30df4cac67..7a55d8b203 100644
--- a/view/smarty3/diaspora_like_relay.tpl
+++ b/view/smarty3/diaspora_like_relay.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
diff --git a/view/smarty3/diaspora_message.tpl b/view/smarty3/diaspora_message.tpl
index 3413d79b00..e1690734fd 100644
--- a/view/smarty3/diaspora_message.tpl
+++ b/view/smarty3/diaspora_message.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
diff --git a/view/smarty3/diaspora_photo.tpl b/view/smarty3/diaspora_photo.tpl
index cd7ef58023..b6220346c4 100644
--- a/view/smarty3/diaspora_photo.tpl
+++ b/view/smarty3/diaspora_photo.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
diff --git a/view/smarty3/diaspora_post.tpl b/view/smarty3/diaspora_post.tpl
index abbcc4c610..2817f7d4a0 100644
--- a/view/smarty3/diaspora_post.tpl
+++ b/view/smarty3/diaspora_post.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
diff --git a/view/smarty3/diaspora_profile.tpl b/view/smarty3/diaspora_profile.tpl
index 04f2e2948b..11aaf10550 100644
--- a/view/smarty3/diaspora_profile.tpl
+++ b/view/smarty3/diaspora_profile.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
{{$handle}}
diff --git a/view/smarty3/diaspora_relay_retraction.tpl b/view/smarty3/diaspora_relay_retraction.tpl
index 5e7aed41f3..97a1344c97 100644
--- a/view/smarty3/diaspora_relay_retraction.tpl
+++ b/view/smarty3/diaspora_relay_retraction.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
diff --git a/view/smarty3/diaspora_relayable_retraction.tpl b/view/smarty3/diaspora_relayable_retraction.tpl
index 927e394f39..138cbdb317 100644
--- a/view/smarty3/diaspora_relayable_retraction.tpl
+++ b/view/smarty3/diaspora_relayable_retraction.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
diff --git a/view/smarty3/diaspora_retract.tpl b/view/smarty3/diaspora_retract.tpl
index 26e2cb94e3..103bfc9d5c 100644
--- a/view/smarty3/diaspora_retract.tpl
+++ b/view/smarty3/diaspora_retract.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
diff --git a/view/smarty3/diaspora_share.tpl b/view/smarty3/diaspora_share.tpl
index 59eb061242..5ff04440d5 100644
--- a/view/smarty3/diaspora_share.tpl
+++ b/view/smarty3/diaspora_share.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
diff --git a/view/smarty3/diaspora_signed_retract.tpl b/view/smarty3/diaspora_signed_retract.tpl
index f0f346da80..58c5cc2376 100644
--- a/view/smarty3/diaspora_signed_retract.tpl
+++ b/view/smarty3/diaspora_signed_retract.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
diff --git a/view/smarty3/diaspora_vcard.tpl b/view/smarty3/diaspora_vcard.tpl
index 9d234a3989..5ea6335a87 100644
--- a/view/smarty3/diaspora_vcard.tpl
+++ b/view/smarty3/diaspora_vcard.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
Nickname
diff --git a/view/smarty3/directory_header.tpl b/view/smarty3/directory_header.tpl
index c2ca64682c..ed1115de9d 100644
--- a/view/smarty3/directory_header.tpl
+++ b/view/smarty3/directory_header.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
{{$sitedir}}
{{$globaldir}}
diff --git a/view/smarty3/directory_item.tpl b/view/smarty3/directory_item.tpl
index f4bd66d771..ae52646b8f 100644
--- a/view/smarty3/directory_item.tpl
+++ b/view/smarty3/directory_item.tpl
@@ -1,3 +1,8 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}