Changes in [1541:4a3f328d2a74:1542:2de80618299a]
- Files:
-
- 1 added
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
.hgsubstate
r1225 r1258 1 e2e1a2c966318f4c5ea67f3c3de72ae0ac79b333inc/libs/clearbricks1 4a0351ee5d566a83ff06ca8bc9fffeb99885f545 inc/libs/clearbricks -
admin/index.php
r1179 r1247 59 59 if (!$core->auth->user_prefs->dashboard->prefExists('quickentry')) { 60 60 if (!$core->auth->user_prefs->dashboard->prefExists('quickentry',true)) { 61 $core->auth->user_prefs->dashboard->put('quickentry', true,'boolean','',null,true);62 } 63 $core->auth->user_prefs->dashboard->put('quickentry', true,'boolean');61 $core->auth->user_prefs->dashboard->put('quickentry',false,'boolean','',null,true); 62 } 63 $core->auth->user_prefs->dashboard->put('quickentry',false,'boolean'); 64 64 } 65 65 -
admin/install/index.php
r1179 r1247 190 190 $core->auth->user_prefs->dashboard->put('doclinks',true,'boolean','',null,true); 191 191 $core->auth->user_prefs->dashboard->put('dcnews',true,'boolean','',null,true); 192 $core->auth->user_prefs->dashboard->put('quickentry', true,'boolean','',null,true);192 $core->auth->user_prefs->dashboard->put('quickentry',false,'boolean','',null,true); 193 193 194 194 # Add accessibility options -
admin/js/_post.js
r1140 r1256 79 79 // Get document format and prepare toolbars 80 80 var formatField = $('#post_format').get(0); 81 var last_post_format = $(formatField).val(); 81 82 $(formatField).change(function() { 82 excerptTb.switchMode(this.value); 83 contentTb.switchMode(this.value); 83 // Confirm post format change 84 if(window.confirm(dotclear.msg.confirm_change_post_format_noconvert)){ 85 excerptTb.switchMode(this.value); 86 contentTb.switchMode(this.value); 87 last_post_format = $(this).val(); 88 }else{ 89 // Restore last format if change cancelled 90 $(this).val(last_post_format); 91 } 84 92 }); 85 93 -
admin/plugins.php
r1182 r1238 387 387 echo '</div>'; 388 388 389 if ($core->plugins->moduleExists('daInstaller')) { 390 echo '<p><a href="plugin.php?p=daInstaller" class="multi-part">'.__('DotAddict.org Installer').'</a></p>'; 391 } 392 393 389 394 # --BEHAVIOR-- pluginsToolsTabs 390 395 $core->callBehavior('pluginsToolsTabs',$core); -
admin/users.php
r1179 r1237 106 106 107 107 echo 108 '<h2 class="p ost-title">'.__('Users').'</h2>'.108 '<h2 class="page-title">'.__('Users').'</h2>'. 109 109 '<p class="top-add"><strong><a class="button add" href="user.php">'.__('Create a new user').'</a></strong></p>'; 110 110 -
inc/admin/lib.dc.page.php
r1188 r1256 476 476 self::jsVar('dotclear.msg.confirm_change_post_format', 477 477 __('You have unsaved changes. Switch post format will loose these changes. Proceed anyway?')). 478 self::jsVar('dotclear.msg.confirm_change_post_format_noconvert', 479 __("Warning: post format change will not convert existing content. You will need to apply new format by yourself. Proceed anyway?")). 478 480 self::jsVar('dotclear.msg.load_enhanced_uploader', 479 481 __('Loading enhanced uploader, please wait.')). -
inc/core/class.dc.blog.php
r1541 r1542 203 203 @param ids <b>mixed</b> Comment(s) ID(s) 204 204 @param del <b>boolean</b> If comment is delete, set this to true 205 */ 206 public function triggerComments($ids,$del=false) 205 @param affected_posts <b>mixed</b> Posts(s) ID(s) 206 */ 207 public function triggerComments($ids, $del=false, $affected_posts=null) 207 208 { 208 209 $co_ids = dcUtils::cleanIds($ids); 210 $a_ids = dcUtils::cleanIds($affected_posts); 211 $a_tbs = array(); 209 212 210 213 # a) Retrieve posts affected by comments edition 211 $strReq = 212 'SELECT post_id, comment_trackback '. 213 'FROM '.$this->prefix.'comment '. 214 'WHERE comment_id'.$this->con->in($co_ids). 215 'GROUP BY post_id,comment_trackback'; 216 217 $rs = $this->con->select($strReq); 218 219 $a_ids = $a_tbs = array(); 220 while ($rs->fetch()) { 221 $a_ids[] = (integer) $rs->post_id; 222 $a_tbs[] = (integer) $rs->comment_trackback; 214 if (empty($a_ids)) { 215 $strReq = 216 'SELECT post_id, comment_trackback '. 217 'FROM '.$this->prefix.'comment '. 218 'WHERE comment_id'.$this->con->in($co_ids). 219 'GROUP BY post_id,comment_trackback'; 220 221 $rs = $this->con->select($strReq); 222 223 while ($rs->fetch()) { 224 $a_ids[] = (integer) $rs->post_id; 225 $a_tbs[] = (integer) $rs->comment_trackback; 226 } 223 227 } 224 228 … … 255 259 { 256 260 $nb_comment = $nb_trackback = 0; 261 //$cur->nb_comment = $nb_comment; 257 262 foreach($b_ids as $b_key => $b_id) 258 263 { … … 505 510 $this->core->callBehavior('coreBeforeCategoryCreate',$this,$cur); 506 511 507 $this->categories()->addNode($cur,$parent); 512 $id = $this->categories()->addNode($cur,$parent); 513 # Update category's cursor 514 $rs = $this->getCategory($id); 515 if (!$rs->isEmpty()) { 516 $cur->cat_lft = $rs->cat_lft; 517 $cur->cat_rgt = $rs->cat_rgt; 518 } 508 519 509 520 # --BEHAVIOR-- coreAfterCategoryCreate … … 2191 2202 $co_ids = dcUtils::cleanIds($ids); 2192 2203 2193 if (empty($ ids)) {2204 if (empty($co_ids)) { 2194 2205 throw new Exception(__('No such comment ID')); 2206 } 2207 2208 # Retrieve posts affected by comments edition 2209 $affected_posts = array(); 2210 $strReq = 2211 'SELECT distinct(post_id) '. 2212 'FROM '.$this->prefix.'comment '. 2213 'WHERE comment_id'.$this->con->in($co_ids); 2214 2215 $rs = $this->con->select($strReq); 2216 2217 while ($rs->fetch()) { 2218 $affected_posts[] = (integer) $rs->post_id; 2195 2219 } 2196 2220 … … 2222 2246 2223 2247 $this->con->execute($strReq); 2224 $this->triggerComments($co_ids, true);2248 $this->triggerComments($co_ids, true, $affected_posts); 2225 2249 $this->triggerBlog(); 2226 2250 } -
inc/load_plugin_file.php
r1179 r1241 86 86 } 87 87 88 http::$cache_max_age = 7200;88 http::$cache_max_age = (!defined('DC_CACHE_MAX_AGE') ? 604800 : DC_CACHE_MAX_AGE); 89 89 http::cache(array_merge(array($PF),get_included_files())); 90 90 -
inc/public/class.dc.template.php
r1179 r1249 67 67 $this->addValue('BlogLanguage',array($this,'BlogLanguage')); 68 68 $this->addValue('BlogThemeURL',array($this,'BlogThemeURL')); 69 $this->addValue('BlogParentThemeURL',array($this,'BlogParentThemeURL')); 69 70 $this->addValue('BlogUpdateDate',array($this,'BlogUpdateDate')); 70 71 $this->addValue('BlogID',array($this,'BlogID')); … … 839 840 840 841 /*dtd 841 <!ELEMENT tpl:BlogThemeURL - O -- Blog's current Theme iURL -->842 <!ELEMENT tpl:BlogThemeURL - O -- Blog's current Theme URL --> 842 843 */ 843 844 public function BlogThemeURL($attr) … … 845 846 $f = $this->getFilters($attr); 846 847 return '<?php echo '.sprintf($f,'$core->blog->settings->system->themes_url."/".$core->blog->settings->system->theme').'; ?>'; 848 } 849 850 /*dtd 851 <!ELEMENT tpl:BlogParentThemeURL - O -- Blog's current Theme's parent URL --> 852 */ 853 public function BlogParentThemeURL($attr) 854 { 855 $f = $this->getFilters($attr); 856 $parent = '$core->themes->moduleInfo($core->blog->settings->system->theme,\'parent\')'; 857 return '<?php echo '.sprintf($f,'$core->blog->settings->system->themes_url."/".('."$parent".' ? '."$parent".' : $core->blog->settings->system->theme)').'; ?>'; 847 858 } 848 859 -
locales/en/main.po
r1039 r1256 2154 2154 msgstr "" 2155 2155 2156 msgid "Warning: post format change will not convert existing content. You will need to apply new format by yourself. Proceed anyway?" 2157 msgstr "" 2158 2156 2159 msgid "Loading enhanced uploader, please wait." 2157 2160 msgstr "" -
locales/fr/main.po
r1233 r1256 1038 1038 #, fuzzy, php-format 1039 1039 msgid "Path <strong>%s</strong> is not writable." 1040 msgstr "Le répertoire de cache %sn'est pas accessible en écriture."1040 msgstr "Le répertoire <strong>%s</strong> n'est pas accessible en écriture." 1041 1041 1042 1042 #, fuzzy … … 1123 1123 #, php-format 1124 1124 msgid "You can change your user language in your <a href=\"%1$s\">preferences</a> or change your blog's main language in your <a href=\"%2$s\">blog settings</a>." 1125 msgstr "Vous pouvez changer votre langue d'utilisateur dans vos <a href=\"%1$s\">préférences</a> ou changer la langue principale de votre blog dans vos <a href=\"%2$s\">paramètres d eblog</a>."1125 msgstr "Vous pouvez changer votre langue d'utilisateur dans vos <a href=\"%1$s\">préférences</a> ou changer la langue principale de votre blog dans vos <a href=\"%2$s\">paramètres du blog</a>." 1126 1126 1127 1127 msgid "Installed languages" … … 2142 2142 #, fuzzy 2143 2143 msgid "Go to the content" 2144 msgstr " Voir ce billet sur le site"2144 msgstr "Aller au contenu" 2145 2145 2146 2146 #, fuzzy 2147 2147 msgid "Go to the menu" 2148 msgstr "Aller sur le site"2148 msgstr "Aller au menu" 2149 2149 2150 2150 msgid "Go to site" … … 2264 2264 msgstr "Vous avez des modifications non sauvegardées. Changer de format vous fera perdre ces modifications. Continuer ?" 2265 2265 2266 msgid "Warning: post format change will not convert existing content. You will need to apply new format by yourself. Proceed anyway?" 2267 msgstr "Attention : le changement de syntaxe ne transformera pas les balises des contenus déjà saisis. Pensez à les réadapter après cette opération. Confirmez-vous ce changement de syntaxe ?" 2268 2266 2269 msgid "Loading enhanced uploader, please wait." 2267 2270 msgstr "Chargement de l'interface avancée." … … 2512 2515 #, fuzzy 2513 2516 msgid "You are not allowed to reset categories order" 2514 msgstr "Vous n'êtes pas autorisé à supprimerdes catégories"2517 msgstr "Vous n'êtes pas autorisé à réinitialiser l'ordre des catégories" 2515 2518 2516 2519 msgid "Category URL must be unique." -
plugins/daInstaller/index.php
r1046 r1237 256 256 '<body>'. 257 257 infoMessages(). 258 '<h2 >'.__('DotAddict.org Installer').'</h2>'.258 '<h2 class="page-title">'.__('DotAddict.org Installer').'</h2>'. 259 259 '<p>'.__('Install and update your extensions live from DotAddict.org').'</p>'; 260 260 -
plugins/pages/page.php
r1215 r1239 302 302 dcPage::jsToolBar(). 303 303 dcPage::jsModal(). 304 dcPage::jsMetaEditor(). 304 305 dcPage::jsLoad('js/_post.js'). 305 306 dcPage::jsConfirmClose('entry-form','comment-form'). -
plugins/tags/_admin.php
r1179 r1239 23 23 $core->addBehavior('adminAfterPostUpdate',array('tagsBehaviors','setTags')); 24 24 25 $core->addBehavior('adminPageHeaders',array('tagsBehaviors','pageHeaders')); 26 25 27 $core->addBehavior('adminPostHeaders',array('tagsBehaviors','postHeaders')); 26 28 $core->addBehavior('adminPostsActionsHeaders',array('tagsBehaviors','postsActionsHeaders')); … … 99 101 } 100 102 } 103 } 104 105 public static function pageHeaders() 106 { 107 $tag_url = $GLOBALS['core']->blog->url.$GLOBALS['core']->url->getURLFor('tag'); 108 109 $opts = $GLOBALS['core']->auth->getOptions(); 110 $type = isset($opts['tag_list_format']) ? $opts['tag_list_format'] : 'more'; 111 112 return 113 '<script type="text/javascript" src="index.php?pf=tags/js/jquery.autocomplete.js"></script>'. 114 '<script type="text/javascript" src="index.php?pf=tags/js/page.js"></script>'. 115 '<script type="text/javascript">'."\n". 116 "//<![CDATA[\n". 117 "metaEditor.prototype.meta_url = 'plugin.php?p=tags&m=tag_posts&tag=';\n". 118 "metaEditor.prototype.meta_type = '".html::escapeJS($type)."';\n". 119 "metaEditor.prototype.text_confirm_remove = '".html::escapeJS(__('Are you sure you want to remove this %s?'))."';\n". 120 "metaEditor.prototype.text_add_meta = '".html::escapeJS(__('Add a %s to this entry'))."';\n". 121 "metaEditor.prototype.text_choose = '".html::escapeJS(__('Choose from list'))."';\n". 122 "metaEditor.prototype.text_all = '".html::escapeJS(__('all'))."';\n". 123 "metaEditor.prototype.text_separation = '';\n". 124 "jsToolBar.prototype.elements.tag.title = '".html::escapeJS(__('Tag'))."';\n". 125 "jsToolBar.prototype.elements.tag.url = '".html::escapeJS($tag_url)."';\n". 126 "dotclear.msg.tags_autocomplete = '".html::escapeJS(__('used in %e - frequency %p%'))."';\n". 127 "dotclear.msg.entry = '".html::escapeJS(__('entry'))."';\n". 128 "dotclear.msg.entries = '".html::escapeJS(__('entries'))."';\n". 129 "\n//]]>\n". 130 "</script>\n". 131 '<link rel="stylesheet" type="text/css" href="index.php?pf=tags/style.css" />'; 101 132 } 102 133 -
plugins/widgets/_widgets_functions.php
r1179 r1253 29 29 ($w->title ? '<h2><label for="q">'.html::escapeHTML($w->title).'</label></h2>' : ''). 30 30 '<form action="'.$core->blog->url.'" method="get">'. 31 '<fieldset>'.32 31 '<p><input type="text" size="10" maxlength="255" id="q" name="q" value="'.$value.'" /> '. 33 32 '<input type="submit" class="submit" value="ok" /></p>'. 34 '</fieldset>'.35 33 '</form>'. 36 34 ($w->content_only ? '' : '</div>');
Note: See TracChangeset
for help on using the changeset viewer.