Author Topic: Prestashop splisting tab php7.2 deprecate issue  (Read 499 times)

Offline sundar

  • Site Manager
  • Hero Member
  • *****
  • Posts: 249
  • Total likes: 1
  • Karma: +1/-0
  • Gender: Male
  • Thirsty Knowledge...
    • View Profile
    • Can talk anything
Prestashop splisting tab php7.2 deprecate issue
« on: July 13, 2020, 04:33:51 PM »
Here is the solution for splisting tab php7.2 deprecate create_function() here have to use anonymous function


have to replace this under module->splistingtab->splistingtab.php

Code: [Select]
                  usort ($list, function ($a, $b) {return strnatcasecmp( $a["name"], $b["name"]);});
               else
                  usort ($list, function ($a, $b) {return strnatcasecmp( $b["name"], $a["name"]);});
               break;
            case 'id_category':
               if ($cat_ordering == 'ASC')
                  usort ($list, function ($a, $b) {return $a["id_category"] > $b["id_category"];});
               else
                  usort ($list, function ($a, $b) {return $a["id_category"] < $b["id_category"];});
Always TAG your threads

  • Download all the schematics here Direct download
  • Stay connected with S4talk on

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal