File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -301,14 +301,14 @@ private function createNewCourseware($courseware)
301301 if (count ($ sections ) === 1 ) {
302302 $ section = $ sections [0 ];
303303 $ new_section = $ this ->createStructuralElement ($ section , $ root ->id );
304- $ new_subchapter_title =
305- strval ($ chapter ['title ' ]) === strval ($ subchapter ['title ' ]) ?
306- $ chapter ['title ' ] :
307- $ chapter ['title ' ] . ' - ' . $ subchapter ['title ' ];
304+ $ new_section_title =
305+ strval ($ subchapter ['title ' ]) === strval ($ section ['title ' ]) ?
306+ $ subchapter ['title ' ] :
307+ $ subchapter ['title ' ] . ' - ' . $ section ['title ' ];
308308 $ new_section ->title =
309- strval ($ new_subchapter_title ) === strval ($ section ['title ' ]) ?
310- $ new_subchapter_title :
311- $ new_subchapter_title . ' - ' . $ section [ ' title ' ] ;
309+ strval ($ new_section_title ) === strval ($ chapter ['title ' ]) ?
310+ $ new_section_title :
311+ $ chapter [ ' title ' ] . ' - ' . $ new_section_title ;
312312 $ new_section ->position = $ chapter ['position ' ];
313313 $ new_section ->store ();
314314 $ section_map [$ section ['id ' ]] = $ new_section ->id ;
You can’t perform that action at this time.
0 commit comments