Fixed : cURL uploader
Fixed : isSectionEnabled check on view channel
This commit is contained in:
parent
51dc3c7990
commit
5f9718b65c
3 changed files with 9 additions and 1 deletions
|
@ -255,7 +255,10 @@ sleep(10);
|
|||
$details = file_get_contents($log_file);
|
||||
$details = json_decode($details,true);
|
||||
$Upload->add_conversion_queue($details['file_name']);
|
||||
|
||||
if(file_exists($log_file))
|
||||
unlink($log_file);
|
||||
if(file_exists($dummy_file))
|
||||
unlink($dummy_file);
|
||||
$quick_conv = config('quick_conv');
|
||||
$use_crons = config('use_crons');
|
||||
|
@ -263,6 +266,8 @@ $use_crons = config('use_crons');
|
|||
|
||||
//Inserting data
|
||||
$title = urldecode(mysql_clean(getName($file)));
|
||||
$title = $title ? $title : "Untitled";
|
||||
|
||||
$vidDetails = array
|
||||
(
|
||||
'title' => $title,
|
||||
|
|
|
@ -42,6 +42,8 @@ class cbfeeds
|
|||
*/
|
||||
function addFeed($feed)
|
||||
{
|
||||
if(!isSectionEnabled('feeds'))
|
||||
return false;
|
||||
global $userquery;
|
||||
$uid = $feed['uid'];
|
||||
|
||||
|
|
|
@ -96,8 +96,9 @@
|
|||
|
||||
<div class="clearfix channelBox" style="border:1px solid #ccc; padding:0px;">
|
||||
<ul class="channelBar clearfix">
|
||||
{if isSectionEnabled('feeds')}
|
||||
<li><a href="#" rel="userFeeds" id="userFeedTab" onClick="channelObjects(this,'#channelDetailsBox','feeds','{$u.userid}'); return false;">{lang code='activity'}</a></li>
|
||||
|
||||
{/if}
|
||||
<li><a href="#" rel="infoDIV" id="infoTab" onClick="channelObjects(this,'#channelDetailsBox','info','{$u.userid}'); return false;">{lang code='info'}</a></li>
|
||||
{if isSectionEnabled('videos')}
|
||||
<li><a href="#" onClick="channelObjects(this,'#channelDetailsBox','videos','{$u.userid}'); return false;">{lang code='videos'}</a></li>{/if}
|
||||
|
|
Loading…
Add table
Reference in a new issue