Changeset 3067:42a2dc49b08f
- Timestamp:
- 08/11/15 17:25:03 (9 years ago)
- Branch:
- default
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
CHANGELOG
r2958 r3067 1 Dotclear 2.8 - 2015-08-13 2 =========================================================== 3 * New module dependencies system (plugins) 4 * Theme editor: Cope with css theme sub-folder 5 * extension/heritage system applied to mustek templateset 6 * installation wizard now allows SQLite engine 7 * Legacy editor toolbar may now be displayed below textarea 8 * Breadcrumb plugin added to the distribution, included in mustek/currywurst templatesets 9 * Allow a fifth parameter (optional) for image to insert a legend using figure/figcaption tags (wiki) 10 * XHTML validator removed from legacy editor 11 * Update jQuery from 1.11.2 to 1.11.3 12 * Add a blog parameter to disable internal search 13 * Add some sort orders and filters criteria for posts and comments 14 * Update CKEditor from 4.4.8 to 4.5.2 15 * Add IP and antispam filter columns when displaying spams 16 * Add actions to directly blacklist IP from comments list 17 * Lexical sort order for tags and widgets 18 * Use HTML5 audio tag for MP3 attachments 19 * Lot of bug fixes 20 * Various cosmestic adjustments 21 1 22 Dotclear 2.7.4 - 2015-02-13 2 23 =========================================================== -
inc/core/class.dc.modules.php
r3066 r3067 61 61 * @return array list of enabled modules with unmet dependencies, and that must be disabled. 62 62 */ 63 public function checkDependencies() { 63 public function checkDependencies() 64 { 64 65 $this->to_disable = array(); 65 66 foreach ($this->all_modules as $k => &$m) { … … 106 107 * Checks all modules dependencies, and disable unmet dependencies 107 108 * @param string $redir_url URL to redirect if modules are to disable 108 * @return boolea , true if a redirection has been performed109 * @return boolean, true if a redirection has been performed 109 110 */ 110 public function disableDepModules($redir_url) { 111 public function disableDepModules($redir_url) 112 { 111 113 if (isset($_GET['dep'])) { 112 114 // Avoid infinite redirects … … 115 117 $reason = array(); 116 118 foreach ($this->to_disable as $module) { 117 118 119 120 121 119 try{ 120 $this->deactivateModule($module['name']); 121 $reason[] = sprintf("<li>%s : %s</li>",$module['name'],join(',',$module['reason'])); 122 } catch (Exception $e) { 123 } 122 124 } 123 125 if (count($reason)) { 124 126 $message = sprintf ("<p>%s</p><ul>%s</ul>", 125 __( "The following extensions have been disabled :"),127 __('The following extensions have been disabled :'), 126 128 join('',$reason) 127 129 ); 128 dcPage::addWarningNotice($message,array('divtag'=>true,'with_ts' => false)); 129 if (strpos($redir_url,"?")) { 130 $url = $redir_url."&"."dep=1"; 131 } else { 132 $url = $redir_url."?"."dep=1"; 133 } 130 dcPage::addWarningNotice($message,array('divtag' => true,'with_ts' => false)); 131 $url = $redir_url.(strpos($redir_url,"?") ? '&' : '?').'dep=1'; 134 132 http::redirect($url); 135 133 return true;
Note: See TracChangeset
for help on using the changeset viewer.