Changeset 2319:abe2702e1585
- Timestamp:
- 10/09/13 08:37:56 (12 years ago)
- Branch:
- default
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/blog_theme.php
r2314 r2319 15 15 dcPage::check('admin'); 16 16 17 # -- "First time" settings setup --18 if ($core->blog->settings->system->store_theme_url === null) {19 $core->blog->settings->system->put(20 'store_theme_url', 'http://update.dotaddict.org/dc2/themes.xml', 'string', 'Themes XML feed location', true, true21 );22 }23 24 17 # -- Loading themes -- 25 18 $core->themes = new dcThemes($core); -
admin/install/index.php
r2303 r2319 162 162 $blog_settings->system->put('date_formats',serialize($date_formats),'string','Date formats examples',true); 163 163 $blog_settings->system->put('time_formats',serialize($time_formats),'string','Time formats examples',true); 164 164 165 # Add repository URL for themes and plugins 166 $blog_settings->system->put('store_plugin_url','http://update.dotaddict.org/dc2/plugins.xml','string','Plugins XML feed location',true); 167 $blog_settings->system->put('store_theme_url','http://update.dotaddict.org/dc2/themes.xml','string','Themes XML feed location',true); 168 165 169 # Add Dotclear version 166 170 $cur = $core->con->openCursor($core->prefix.'version'); -
admin/plugins.php
r2314 r2319 15 15 dcPage::check('admin'); 16 16 17 # -- "First time" settings setup --18 if ($core->blog->settings->system->plugins_allow_multi_install === null) {19 $core->blog->settings->system->put(20 'plugins_allow_multi_install', false, 'boolean', 'Allow multi-installation for plugins', true, true21 );22 }23 if ($core->blog->settings->system->store_plugin_url === null) {24 $core->blog->settings->system->put(25 'store_plugin_url', 'http://update.dotaddict.org/dc2/plugins.xml', 'string', 'Plugins XML feed location', true, true26 );27 }28 29 17 # -- Page helper -- 30 18 $list = new adminModulesList( … … 34 22 ); 35 23 36 adminModulesList::$allow_multi_install = $core->blog->settings->system->plugins_allow_multi_install;24 adminModulesList::$allow_multi_install = (boolean) DC_ALLOW_MULTI_MODULES; 37 25 adminModulesList::$distributed_modules = explode(',', DC_DISTRIB_PLUGINS); 38 26 -
inc/core/class.dc.store.reader.php
r2222 r2319 148 148 $this->setAuthorization($user, $pass); 149 149 150 return $this->get($path); 150 try { 151 return $this->get($path); 152 } 153 catch(Exception $e) { 154 // @todo Log error when repository query fail 155 return false; 156 } 151 157 } 152 158 -
inc/dbschema/upgrade.php
r2295 r2319 361 361 } 362 362 363 # add new settings for date and time formats 363 # Some settings change, prepare db queries 364 $strReqFormat = 'INSERT INTO '.$core->prefix.'setting'; 365 $strReqFormat .= ' (setting_id,setting_ns,setting_value,setting_type,setting_label)'; 366 $strReqFormat .= ' VALUES(\'%s\',\'system\',\'%s\',\'string\',\'%s\')'; 367 368 $strReqSelect = 'SELECT count(1) FROM '.$core->prefix.'setting'; 369 $strReqSelect .= ' WHERE setting_id = \'%s\''; 370 $strReqSelect .= ' AND setting_ns = \'system\''; 371 $strReqSelect .= ' AND blog_id IS NULL'; 372 373 # Add date and time formats 364 374 $date_formats = array('%Y-%m-%d','%m/%d/%Y','%d/%m/%Y','%Y/%m/%d','%d.%m.%Y','%b %e %Y','%e %b %Y','%Y %b %e', 365 375 '%a, %Y-%m-%d','%a, %m/%d/%Y','%a, %d/%m/%Y','%a, %Y/%m/%d','%B %e, %Y','%e %B, %Y','%Y, %B %e','%e. %B %Y', … … 372 382 } 373 383 374 $strReqFormat = 'INSERT INTO '.$core->prefix.'setting';375 $strReqFormat .= ' (setting_id,setting_ns,setting_value,setting_type,setting_label)';376 $strReqFormat .= ' VALUES(\'%s\',\'system\',\'%s\',\'string\',\'%s\')';377 378 $strReqSelect = 'SELECT count(1) FROM '.$core->prefix.'setting';379 $strReqSelect .= ' WHERE setting_id = \'%s\'';380 $strReqSelect .= ' AND setting_ns = \'system\'';381 $strReqSelect .= ' AND blog_id IS NULL';382 383 384 $rs = $core->con->select(sprintf($strReqSelect,'date_formats')); 384 385 if ($rs->f(0)==0) { … … 390 391 $strReq = sprintf($strReqFormat,'time_formats',serialize($time_formats),'Time formats examples'); 391 392 $core->con->execute($strReq); 393 } 394 395 # Add repository URL for themes and plugins as daInstaller move to core 396 $rs = $core->con->select(sprintf($strReqSelect,'store_plugin_url')); 397 if ($rs->f(0)==0) { 398 $strReq = sprintf($strReqFormat,'store_plugin_url','http://update.dotaddict.org/dc2/plugins.xml','Plugins XML feed location'); 399 $core->con->execute($strReq); 400 } 401 $rs = $core->con->select(sprintf($strReqSelect,'store_theme_url')); 402 if ($rs->f(0)==0) { 403 $strReq = sprintf($strReqFormat,'store_theme_url','http://update.dotaddict.org/dc2/themes.xml','Themes XML feed location'); 404 $core->con->execute($strReq); 392 405 } 393 406 } -
inc/prepend.php
r2286 r2319 167 167 if (!defined('DC_UPDATE_VERSION')) { 168 168 define('DC_UPDATE_VERSION','stable'); 169 } 170 171 if (!defined('DC_ALLOW_MULTI_MODULES')) { 172 define('DC_ALLOW_MULTI_MODULES',false); 169 173 } 170 174
Note: See TracChangeset
for help on using the changeset viewer.