database name constant.

This commit is contained in:
naomiaro 2011-01-10 13:26:43 -05:00
parent c1c4c4e598
commit 8b2b2d934c
1 changed files with 2 additions and 2 deletions

View File

@ -153,7 +153,7 @@ class Playlist {
public static function findPlaylistMaxLength($p_length)
{
$con = Propel::getConnection("airtime");
$con = Propel::getConnection(CcPlaylistPeer::DATABASE_NAME);
$sql = "SELECT sub.login, plt.length, pl.state, pl.description, pl.name, pl.id
FROM cc_playlist AS pl LEFT JOIN cc_playlisttimes AS plt USING(id) LEFT JOIN cc_subjs AS sub ON pl.editedby = sub.id
@ -165,7 +165,7 @@ class Playlist {
public static function searchPlaylists($p_length, $search=null)
{
$con = Propel::getConnection("airtime");
$con = Propel::getConnection(CcPlaylistPeer::DATABASE_NAME);
$sql = "SELECT sub.login, plt.length, pl.state, pl.description, pl.name, pl.id
FROM cc_playlist AS pl LEFT JOIN cc_playlisttimes AS plt USING(id) LEFT JOIN cc_subjs AS sub ON pl.editedby = sub.id