Dotclear


Ignore:
Timestamp:
01/02/17 17:03:59 (9 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Switch from functions to closures (PHP 5.3+), fix available favorites order

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/index.php

    r3476 r3491  
    8787 
    8888# Check plugins and themes update from repository 
    89 function dc_check_store_update($mod, $url, $img, $icon) 
     89$checkStoreUpdate = function($mod, $url, $img, $icon) 
    9090{ 
    9191     $repo = new dcStore($mod, $url); 
     
    9696          $icon[2] = 'images/menu/'.$img.'-b-update.png'; 
    9797     } 
    98 } 
     98}; 
    9999if (isset($__dashboard_icons['plugins'])) { 
    100      dc_check_store_update($core->plugins, $core->blog->settings->system->store_plugin_url, 'plugins', $__dashboard_icons['plugins']); 
     100     $checkStoreUpdate($core->plugins, $core->blog->settings->system->store_plugin_url, 'plugins', $__dashboard_icons['plugins']); 
    101101} 
    102102if (isset($__dashboard_icons['blog_theme'])) { 
    103103     $themes = new dcThemes($core); 
    104104     $themes->loadModules($core->blog->themes_path, null); 
    105      dc_check_store_update($themes, $core->blog->settings->system->store_theme_url, 'blog-theme', $__dashboard_icons['blog_theme']); 
     105     $checkStoreUpdate($themes, $core->blog->settings->system->store_theme_url, 'blog-theme', $__dashboard_icons['blog_theme']); 
    106106} 
    107107 
Note: See TracChangeset for help on using the changeset viewer.

Sites map