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


  • Site Manager
  • Full Member
  • *****
  • Posts: 86
  • 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"]);});
                  usort ($list, function ($a, $b) {return strnatcasecmp( $b["name"], $a["name"]);});
            case 'id_category':
               if ($cat_ordering == 'ASC')
                  usort ($list, function ($a, $b) {return $a["id_category"] > $b["id_category"];});
                  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 SMMobiles on


SimplePortal 2.3.7 © 2008-2021, SimplePortal