refactoring for Load::model removal

git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/trunk@56 4cb57b5f-5bbd-dd11-951b-001d605cbbc5
This commit is contained in:
pzinovkin
2009-02-03 10:49:08 +00:00
parent 5a197395ae
commit 08db172f23
4 changed files with 43 additions and 16 deletions

View File

@ -83,7 +83,8 @@ final class Env
*/
static public function getBidCost($dis = 0)
{
$cost = Load::model('Settings')->get('bid_base_price');
$settings_model = new SettingsModel();
$cost = $settings_model->get('bid_base_price');
if ($dis > 0 && $dis <= 100) {
return $cost - intval($dis);
}