Fixes as a result of KH 3.3

This commit is contained in:
Deon George
2013-01-10 22:25:19 +11:00
parent 79bdd4ce51
commit f08215717c
8 changed files with 11 additions and 14 deletions

View File

@@ -10,7 +10,7 @@
* @copyright (c) 2010 Open Source Billing
* @license http://dev.osbill.net/license.html
*/
class Model_Service_Plugin_ADSL extends Model_Service_Plugin {
class Model_Service_Plugin_Adsl extends Model_Service_Plugin {
protected $_table_name = 'service__adsl';
protected $_updated_column = FALSE;
@@ -132,7 +132,7 @@ class Model_Service_Plugin_ADSL extends Model_Service_Plugin {
if (is_null($period))
$period = strtotime('yesterday');
$t = ORM::factory('Service_Plugin_ADSL_Traffic')
$t = ORM::factory('Service_Plugin_Adsl_Traffic')
->where('service','=',$this->service_username)
->and_where('date','>=',date('Y-m-d',mktime(0,0,0,date('m',$period),1,date('Y',$period))))
->and_where('date','<=',date('Y-m-d',strtotime('last day of '.date('M Y',$period))))
@@ -160,7 +160,7 @@ class Model_Service_Plugin_ADSL extends Model_Service_Plugin {
if (is_null($period))
$period = strtotime('yesterday');
$t = ORM::factory('Service_Plugin_ADSL_Traffic')
$t = ORM::factory('Service_Plugin_Adsl_Traffic')
->select(
array('date_format(date,\'%y-%m\')','month'),
array('sum(up_peak)','up_peak'),