Compare commits
2 commits
master
...
developmen
Author | SHA1 | Date | |
---|---|---|---|
![]() |
b04f98395a | ||
![]() |
2fe4ded8ec |
4 changed files with 4 additions and 5 deletions
|
@ -64,7 +64,7 @@ class Clipbucket_db
|
||||||
$start = microtime();
|
$start = microtime();
|
||||||
$result = $this->mysqli->query($query);
|
$result = $this->mysqli->query($query);
|
||||||
$end = microtime();
|
$end = microtime();
|
||||||
$timetook = $end - $start;
|
$timetook = (int) $end - (int) $start;
|
||||||
devWitch($query, 'select', $timetook);
|
devWitch($query, 'select', $timetook);
|
||||||
} else {
|
} else {
|
||||||
$result = $this->mysqli->query($query);
|
$result = $this->mysqli->query($query);
|
||||||
|
|
|
@ -24,6 +24,7 @@ class errorhandler extends ClipBucket {
|
||||||
private function add_error($message=NULL,$id=NULL) {
|
private function add_error($message=NULL,$id=NULL) {
|
||||||
global $ignore_cb_errors;
|
global $ignore_cb_errors;
|
||||||
//if id is set, error will be generated from error message list
|
//if id is set, error will be generated from error message list
|
||||||
|
$this->error_list = [];
|
||||||
if(!$ignore_cb_errors)
|
if(!$ignore_cb_errors)
|
||||||
$this->error_list[] = $message;
|
$this->error_list[] = $message;
|
||||||
//$this->error_list['all_errors']['user_error']['critical_priority'][] = $message;
|
//$this->error_list['all_errors']['user_error']['critical_priority'][] = $message;
|
||||||
|
|
|
@ -593,7 +593,7 @@ class myquery {
|
||||||
* @param VID
|
* @param VID
|
||||||
* @param THUMB NUM
|
* @param THUMB NUM
|
||||||
*/
|
*/
|
||||||
function set_default_thumb($vid,$thumb,$version)
|
function set_default_thumb($vid,$thumb,$version = '')
|
||||||
{
|
{
|
||||||
global $cbvid;
|
global $cbvid;
|
||||||
return $cbvid->set_default_thumb($vid,$thumb,$version);
|
return $cbvid->set_default_thumb($vid,$thumb,$version);
|
||||||
|
|
|
@ -51,9 +51,7 @@ for($i=0;$i<sizeof($vtableau);$i++)
|
||||||
<video:category><?=strip_tags(categories($video['category'],'video'))?></video:category>
|
<video:category><?=strip_tags(categories($video['category'],'video'))?></video:category>
|
||||||
<video:family_friendly>yes</video:family_friendly>
|
<video:family_friendly>yes</video:family_friendly>
|
||||||
<video:duration><?php
|
<video:duration><?php
|
||||||
$defaultime = $video['duration'];
|
echo round($video['duration']);
|
||||||
$dotfixed = explode (".",$defaultime);
|
|
||||||
echo $dotfixed[0].$dotfixed[1];
|
|
||||||
?></video:duration>
|
?></video:duration>
|
||||||
</video:video>
|
</video:video>
|
||||||
</url>
|
</url>
|
||||||
|
|
Loading…
Add table
Reference in a new issue