Exemplo n.º 1
0
 /**
  * added in 4.9.0
  */
 public static function renameContentElementsOrFrontendModules()
 {
     // Rename CTE's
     $objContent = \ContentModel::findByType('gallery_creator');
     if ($objContent !== null) {
         $objContent->type = 'gallery_creator_ce';
         $objContent->save();
     }
     // Rename FMD's
     $objModule = \ModuleModel::findByType('gallery_creator');
     if ($objModule !== null) {
         $objModule->type = 'gallery_creator_fmd';
         $objModule->save();
     }
 }