@@ -397,51 +397,50 @@ public static function display_glossary()
397397 // action links
398398 $ actionsLeft = '' ;
399399 if (api_is_allowed_to_edit (null , true )) {
400- $ actionsLeft .= '<a href="index.php? ' . api_get_cidreq () . '&action=addglossary&msg=add? ' . api_get_cidreq () . '"> ' .
401- Display::return_icon ('new_glossary_term.png ' , get_lang ('TermAddNew ' ), '' , ICON_SIZE_MEDIUM ) . '</a> ' ;
400+ $ actionsLeft .= '<a href="index.php? ' . api_get_cidreq (). '&action=addglossary&msg=add? ' . api_get_cidreq (). '"> ' .
401+ Display::return_icon ('new_glossary_term.png ' , get_lang ('TermAddNew ' ), '' , ICON_SIZE_MEDIUM ). '</a> ' ;
402402 }
403403
404404 if (api_is_allowed_to_edit (null , true )) {
405- $ actionsLeft .= '<a href="index.php? ' . api_get_cidreq () . '&action=import"> ' .
406- Display::return_icon ('import.png ' , get_lang ('ImportGlossary ' ), '' , ICON_SIZE_MEDIUM ) . '</a> ' ;
405+ $ actionsLeft .= '<a href="index.php? ' . api_get_cidreq (). '&action=import"> ' .
406+ Display::return_icon ('import.png ' , get_lang ('ImportGlossary ' ), '' , ICON_SIZE_MEDIUM ). '</a> ' ;
407407 }
408408
409409 if (!api_is_anonymous ()) {
410- $ actionsLeft .= '<a id="export-glossary" href=" ' . api_get_self () . '? ' . api_get_cidreq () . '&action=export" class="btn btn-link btn-export" data-toggle="modal" data-target="#modal-export"> ' .
411- Display::return_icon ('save.png ' , get_lang ('Export ' ), '' , ICON_SIZE_MEDIUM ) . '</a> ' ;
410+ $ actionsLeft .= '<a id="export-glossary" href=" ' . api_get_self (). '? ' . api_get_cidreq (). '&action=export" class="btn btn-link btn-export" data-toggle="modal" data-target="#modal-export"> ' .
411+ Display::return_icon ('save.png ' , get_lang ('Export ' ), '' , ICON_SIZE_MEDIUM ). '</a> ' ;
412412 }
413413
414414 if (!api_is_anonymous ()) {
415415 $ actionsLeft .= Display::url (
416416 Display::return_icon ('export_to_documents.png ' , get_lang ('ExportToDocArea ' ), [], ICON_SIZE_MEDIUM ),
417- api_get_self () . '? ' . api_get_cidreq () . '& ' . http_build_query (['action ' => 'export_documents ' ])
417+ api_get_self (). '? ' . api_get_cidreq (). '& ' . http_build_query (['action ' => 'export_documents ' ])
418418 );
419419 }
420420
421421 $ orderList = isset ($ _GET ['order ' ]) ? Database::escape_string ($ _GET ['order ' ]) : '' ;
422- if (empty ($ orderList )){
422+ if (empty ($ orderList )) {
423423 $ orderList = 'ASC ' ;
424424 }
425425 if (!api_is_anonymous ()) {
426- if ($ orderList ==='ASC ' ){
426+ if ($ orderList === 'ASC ' ) {
427427 $ actionsLeft .= Display::url (
428428 Display::return_icon ('falling.png ' , get_lang ('Sort Descending ' ), [], ICON_SIZE_MEDIUM ),
429- api_get_self () . '? ' . api_get_cidreq () . '& ' . http_build_query (['order ' => 'DESC ' ])
429+ api_get_self (). '? ' . api_get_cidreq (). '& ' . http_build_query (['order ' => 'DESC ' ])
430430 );
431431 } else {
432432 $ actionsLeft .= Display::url (
433433 Display::return_icon ('upward.png ' , get_lang ('Sort Ascending ' ), [], ICON_SIZE_MEDIUM ),
434- api_get_self () . '? ' . api_get_cidreq () . '& ' . http_build_query (['order ' => 'ASC ' ])
434+ api_get_self (). '? ' . api_get_cidreq (). '& ' . http_build_query (['order ' => 'ASC ' ])
435435 );
436436 }
437437 }
438438
439-
440439 /* BUILD SEARCH FORM */
441440 $ form = new FormValidator (
442441 'search ' ,
443442 'get ' ,
444- api_get_self () . '? ' . api_get_cidreq (),
443+ api_get_self (). '? ' . api_get_cidreq (),
445444 '' ,
446445 [],
447446 FormValidator::LAYOUT_INLINE
@@ -459,7 +458,7 @@ public static function display_glossary()
459458
460459 $ content = $ toolbar ;
461460
462- $ list = self ::getListGlossary (1000 ,0 , $ orderList );
461+ $ list = self ::getListGlossary (1000 , 0 , $ orderList );
463462
464463 $ tpl = new Template (null );
465464 $ tpl ->assign ('data ' , $ list );
@@ -523,7 +522,8 @@ public static function get_number_glossary_terms($session_id = 0)
523522 return $ obj ->total ;
524523 }
525524
526- public static function getListGlossary ($ numberOfItems , $ column , $ direction ){
525+ public static function getListGlossary ($ numberOfItems , $ column , $ direction )
526+ {
527527 $ _user = api_get_user_info ();
528528
529529 // Database table definition
@@ -592,7 +592,6 @@ public static function getListGlossary($numberOfItems, $column, $direction){
592592 }
593593
594594 return $ list ;
595-
596595 }
597596
598597 /**
0 commit comments