From 11eaa5f580ea1a435dd429cd7890ab27cdb9061f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D1=82=D0=BE=D0=BD=20=D0=A8=D0=B0=D0=BB=D0=B8?= =?UTF-8?q?=D0=BC=D0=BE=D0=B2?= <solidovic@gmail.com> Date: Sun, 31 Aug 2014 23:56:44 +0400 Subject: [PATCH] fix --- ~dev_rating/application/classes/Controller/Handler/Map.php | 2 +- ~dev_rating/application/classes/Model/Teacher/Map.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/~dev_rating/application/classes/Controller/Handler/Map.php b/~dev_rating/application/classes/Controller/Handler/Map.php index 476700e93..54465f9aa 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 e81c70384..e20455f4d 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(); -- GitLab