Skip to content
Snippets Groups Projects
Commit 11eaa5f5 authored by Антон Шалимов's avatar Антон Шалимов
Browse files

fix

parent 571fd5ae
Branches
Tags
No related merge requests found
......@@ -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'),
......
......@@ -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();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment