Dotclear


Ignore:
Timestamp:
10/14/13 07:21:14 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
2.6
Message:

Regenerate locales (en and fr), fix fake_l10n maintenance task if any old-school favs in db

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/buildtools/class.dc.maintenance.buildtools.php

    r2286 r2355  
    5555               $main .= $this->fake_l10n($v['label']); 
    5656          } 
    57           $ws = $this->core->auth->user_prefs->favorites; 
    58           $main .= "\n# Favorites \n\n"; 
    59           foreach ($ws->dumpPrefs() as $k => $v) { 
    60                $fav = unserialize($v['value']); 
    61                $main .= $this->fake_l10n($fav['title']); 
     57          $ws = $this->core->auth->user_prefs->favorites;   // Favs old school ! 
     58          if ($ws) { 
     59               $main .= "\n# Favorites \n\n"; 
     60               foreach ($ws->dumpPrefs() as $k => $v) { 
     61                    $fav = unserialize($v['value']); 
     62                    $main .= $this->fake_l10n($fav['title']); 
     63               } 
    6264          } 
    6365          file_put_contents(dirname($__autoload['dcCore']).'/_fake_l10n.php', $main); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map