Fixed : Sharing Content Error
Fixed : Getting Thumb Number if web-name have '-' in it
This commit is contained in:
parent
7a75ae5f1b
commit
da0ff17a00
2 changed files with 6 additions and 3 deletions
|
@ -6,9 +6,10 @@
|
|||
{assign var=vidthumbs value=func->get_thumb($data,1,TRUE)}
|
||||
|
||||
{foreach from=$vidthumbs item=vid_thumb}
|
||||
|
||||
<div style="width:140px; float:left" align="center">
|
||||
<label for="{$vid_thumb|getname}"><img src="{$vid_thumb}" border="1" style="margin:4px; max-width:120px" /><br />
|
||||
<input type="radio" value="{$vid_thumb|getname}.{$vid_thumb|getext}" id="{$vid_thumb|getname}" name="default_thumb" {if $data.default_thumb==$vid_thumb|get_thumb_num} checked="checked"{/if} />Default</label><br />
|
||||
<input type="radio" value="{$vid_thumb|getname}.{$vid_thumb|getext}" id="{$vid_thumb|getname}" name="default_thumb" {if $data.default_thumb==$vid_thumb|getname|get_thumb_num} checked="checked"{/if} />Default</label><br />
|
||||
{if $vid_thumb|getname!='processing'}
|
||||
<a href="?video={$data.videoid}&delete={$vid_thumb|getname}.{$vid_thumb|getext}">Delete</a>
|
||||
{/if}
|
||||
|
|
|
@ -236,7 +236,6 @@ class cbactions
|
|||
$ok = true;
|
||||
$tpl = $this->share_template_name;
|
||||
$var = $this->val_array;
|
||||
|
||||
//First checking weather object exists or not
|
||||
if($this->exists($id))
|
||||
{
|
||||
|
@ -275,8 +274,11 @@ class cbactions
|
|||
|
||||
//Setting Emails
|
||||
$emails = implode(',',$emails_array);
|
||||
|
||||
//Now Finally Sending Email
|
||||
cbmail(array('to'=>$emails,'from'=>username(),'subject'=>$subj,'content'=>$msg,'use_boundary'=>true));
|
||||
$from = $userquery->get_user_field_only(username(),"email");
|
||||
|
||||
cbmail(array('to'=>$emails,'from'=>$from,'from_name'=>username(),'subject'=>$subj,'content'=>$msg,'use_boundary'=>true));
|
||||
e(sprintf(lang("thnx_sharing_msg"),$this->name),'m');
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue