File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed
Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -1160,11 +1160,7 @@ protected function showMyLastForms() {
11601160 */
11611161 public function displayUserForm () {
11621162 // Print css media
1163- if (method_exists (Plugin::class, 'getWebDir ' )) {
1164- $ css = '/ ' . Plugin::getWebDir ('formcreator ' , false ) . '/css/print_form.css ' ;
1165- } else {
1166- $ css = '/plugins/formcreator/css/print_form.css ' ;
1167- }
1163+ $ css = '/ ' . Plugin::getWebDir ('formcreator ' , false ) . '/css/print_form.css ' ;
11681164 echo Html::css ($ css , ['media ' => 'print ' ]);
11691165
11701166 $ style = "<style> " ;
Original file line number Diff line number Diff line change @@ -49,11 +49,7 @@ public static function getTypeName($nb = 0) {
4949 static function getMenuContent () {
5050 $ menu = parent ::getMenuContent ();
5151 $ menu ['title ' ] = static ::getTypeName (2 );
52- if (method_exists (Plugin::class, 'getWebDir ' )) {
53- $ menu ['page ' ] = '/ ' . Plugin::getWebDir ('formcreator ' , false ) . '/front/formlist.php ' ;
54- } else {
55- $ menu ['page ' ] = '/plugins/formcreator/front/formlist.php ' ;
56- }
52+ $ menu ['page ' ] = '/ ' . Plugin::getWebDir ('formcreator ' , false ) . '/front/formlist.php ' ;
5753 $ menu ['icon ' ] = 'fas fa-edit ' ;
5854 $ image = '<img src=" ' . FORMCREATOR_ROOTDOC . '/pics/check.png"
5955 title=" ' . __ ('Forms waiting for validation ' , 'formcreator ' ) . '"
You can’t perform that action at this time.
0 commit comments