Changeset 3812:bc19aeafa1c2
- Timestamp:
- 08/17/18 11:08:51 (7 years ago)
- Branch:
- default
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/blog_theme.php
r3731 r3812 20 20 $core->themes, 21 21 $core->blog->themes_path, 22 $core->blog->settings->system->store_theme_url 22 $core->blog->settings->system->store_theme_url, 23 !empty($_GET['nocache']) 23 24 ); 24 25 adminThemesList::$distributed_modules = explode(',', DC_DISTRIB_THEMES); … … 105 106 # -- Display modules lists -- 106 107 if ($core->auth->isSuperAdmin()) { 108 109 if (!$core->error->flag()) { 110 if (!empty($_GET['nocache'])) { 111 dcPage::success(__('Manual checking of themes update done successfully.')); 112 } 113 } 107 114 108 115 # Updated modules from repo … … 134 141 135 142 '</div>'; 143 } else { 144 echo 145 '<form action="' . $list->getURL('', false) . '" method="get">' . 146 '<p><input type="hidden" name="nocache" value="1" />' . 147 '<input type="submit" value="' . __('Force checking update of themes') . '" /></p>' . 148 '</form>'; 136 149 } 137 150 } -
admin/plugins.php
r3731 r3812 16 16 $core->plugins, 17 17 DC_PLUGINS_ROOT, 18 $core->blog->settings->system->store_plugin_url 18 $core->blog->settings->system->store_plugin_url, 19 !empty($_GET['nocache']) 19 20 ); 20 21 … … 115 116 # -- Display modules lists -- 116 117 if ($core->auth->isSuperAdmin()) { 118 119 if (!$core->error->flag()) { 120 if (!empty($_GET['nocache'])) { 121 dcPage::success(__('Manual checking of plugins update done successfully.')); 122 } 123 } 117 124 118 125 # Updated modules from repo … … 144 151 145 152 '</div>'; 153 } else { 154 echo 155 '<form action="' . $list->getURL('', false) . '" method="get">' . 156 '<p><input type="hidden" name="nocache" value="1" />' . 157 '<input type="submit" value="' . __('Force checking update of plugins') . '" /></p>' . 158 '</form>'; 146 159 } 147 160 } -
inc/admin/lib.moduleslist.php
r3775 r3812 54 54 * 55 55 * @param object $modules dcModules instance 56 * @param string $modules_root 56 * @param string $modules_root Modules root directories 57 57 * @param string $xml_url URL of modules feed from repository 58 */ 59 public function __construct(dcModules $modules, $modules_root, $xml_url) 58 * @param boolean $force Force query repository 59 */ 60 public function __construct(dcModules $modules, $modules_root, $xml_url, $force = false) 60 61 { 61 62 $this->core = $modules->core; 62 63 $this->modules = $modules; 63 $this->store = new dcStore($modules, $xml_url );64 $this->store = new dcStore($modules, $xml_url, $force); 64 65 65 66 $this->page_url = $this->core->adminurl->get('admin.plugins'); … … 1468 1469 * 1469 1470 * @param object $modules dcModules instance 1470 * @param string $modules_root 1471 * @param string $modules_root Modules root directories 1471 1472 * @param string $xml_url URL of modules feed from repository 1472 */ 1473 public function __construct(dcModules $modules, $modules_root, $xml_url) 1474 { 1475 parent::__construct($modules, $modules_root, $xml_url); 1473 * @param boolean $force Force query repository 1474 */ 1475 public function __construct(dcModules $modules, $modules_root, $xml_url, $force = false) 1476 { 1477 parent::__construct($modules, $modules_root, $xml_url, $force); 1476 1478 $this->page_url = $this->core->adminurl->get('admin.blog.theme'); 1477 1479 } -
inc/core/class.dc.store.php
r3731 r3812 38 38 * @param object $modules dcModules instance 39 39 * @param string $xml_url XML feed URL 40 */ 41 public function __construct(dcModules $modules, $xml_url) 40 * @param boolean $force Force query repository 41 */ 42 public function __construct(dcModules $modules, $xml_url, $force = false) 42 43 { 43 44 $this->core = $modules->core; … … 46 47 $this->user_agent = sprintf('Dotclear/%s)', DC_VERSION); 47 48 48 $this->check( );49 $this->check($force); 49 50 } 50 51 -
locales/fr/main.po
r3795 r3812 591 591 msgstr "Mettre à jour les thèmes" 592 592 593 msgid "Manual checking of themes update done successfully." 594 msgstr "La vérification manuelle de mise à jour des thèmes a été effectuée." 595 596 msgid "Force checking update of themes" 597 msgstr "Forcer la vérification de mise à jour des thèmes" 598 593 599 #, php-format 594 600 msgid "There is one theme to update available from repository." … … 1782 1788 msgstr "Mise à jour des plugins" 1783 1789 1790 msgid "Manual checking of plugins update done successfully." 1791 msgstr "La vérification manuelle de mise à jour des plugins a été effectuée." 1792 1793 msgid "Force checking update of plugins" 1794 msgstr "Forcer la vérification de mise à jour des plugins" 1795 1784 1796 #, php-format 1785 1797 msgid "There is one plugin to update available from repository."
Note: See TracChangeset
for help on using the changeset viewer.