Formatted sql
This commit is contained in:
parent
3a60d729fd
commit
2cfb0c85d5
|
@ -1057,12 +1057,14 @@ SQL;
|
||||||
{
|
{
|
||||||
$con = Propel::getConnection();
|
$con = Propel::getConnection();
|
||||||
|
|
||||||
$sql = "SELECT id, filepath as fp"
|
$sql = <<<SQL
|
||||||
." FROM CC_FILES"
|
SELECT id,
|
||||||
." WHERE directory = :dir_id"
|
filepath AS fp
|
||||||
." AND file_exists = 'TRUE'"
|
FROM cc_files
|
||||||
." AND replay_gain is NULL"
|
WHERE directory = :dir_id
|
||||||
." LIMIT :lim";
|
AND file_exists = 'TRUE'
|
||||||
|
AND replay_gain IS NULL LIMIT :lim
|
||||||
|
SQL;
|
||||||
|
|
||||||
$stmt = $con->prepare($sql);
|
$stmt = $con->prepare($sql);
|
||||||
$stmt->bindParam(':dir_id', $dir_id);
|
$stmt->bindParam(':dir_id', $dir_id);
|
||||||
|
@ -1171,6 +1173,8 @@ SQL;
|
||||||
return $this->_file->getDbFileExists();
|
return $this->_file->getDbFileExists();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// note: never call this method from controllers because it does a sleep
|
||||||
public function uploadToSoundCloud()
|
public function uploadToSoundCloud()
|
||||||
{
|
{
|
||||||
global $CC_CONFIG;
|
global $CC_CONFIG;
|
||||||
|
|
Loading…
Reference in New Issue