diff --git a/~dev_rating/application/classes/Controller/Handler/Map.php b/~dev_rating/application/classes/Controller/Handler/Map.php index 476700e93c59d5ad7d522eea720d9bca0680c8c8..54465f9aa1106031836fb3638a80dbaeb16e4a91 100644 --- a/~dev_rating/application/classes/Controller/Handler/Map.php +++ b/~dev_rating/application/classes/Controller/Handler/Map.php @@ -184,7 +184,7 @@ class Controller_Handler_Map extends Controller_Handler { -> rule('OrderNum', 'digit'); if($this->post->check()) { // Добавление модуля - $result = CAddModule( + $result = $this->model->AddModule( $this->user['TeacherID'], $this->post->offsetGet('DisciplineID'), $this->post->offsetGet('OrderNum'), diff --git a/~dev_rating/application/classes/Model/Teacher/Map.php b/~dev_rating/application/classes/Model/Teacher/Map.php index e81c70384b89f36e772040447e54bcc0c8266d4a..e20455f4de8655068a6a6d0970efcece83393f05 100644 --- a/~dev_rating/application/classes/Model/Teacher/Map.php +++ b/~dev_rating/application/classes/Model/Teacher/Map.php @@ -14,7 +14,7 @@ class Model_Teacher_Map extends Model return DB::query(Database::SELECT, $sql)->execute(); } - public function addModule($teacherID, $disciplineID, $order, $title) + public function AddModule($teacherID, $disciplineID, $order, $title) { $sql = "SELECT `AddModule`('$teacherID', '$disciplineID', '$order', '$title') AS `Num`;"; return DB::query(Database::SELECT, $sql)->execute();