Changes in [342:a5d04d2da753:343:f9fcb964c910]
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
CHANGELOG
r331 r343 2 2 =========================================================== 3 3 * handling of postgres non default schemas (db_prefix = 'schema.prefix') 4 5 Dotclear 2.3.1 - ongoing dev 6 =========================================================== 7 * Updated makefile for cleaner distrib. 8 * Better localization handling for prefs and shortcuts. 9 * Misc JS & CSS cleaning. 10 * Import/Export preferences-related bugfix. 4 11 5 12 Dotclear 2.3.0 - 2011-05-16 -
Makefile
r288 r343 54 54 find ./$(DIST)/ -type d -name '.svn' -print0 | xargs -0 rm -rf 55 55 56 ## Remove .hg* files and folders 57 find ./$(DIST)/ -type d -name '.hg*' | xargs rm -rf 58 find ./$(DIST)/ -type f -name '.hg*' | xargs rm -rf 59 56 60 ## "Compile" .po files 57 61 ./build-tools/make-l10n.php ./$(DC)/ -
admin/auth.php
r270 r314 295 295 if ($.cookie('dc_admin_test_cookie')) { 296 296 $('#cookie_help').hide(); 297 $.cookie('dc_admin_test_cookie', '', { expires: -1});297 $.cookie('dc_admin_test_cookie', '', {'expires': -1}); 298 298 } else { 299 299 $('#cookie_help').show(); -
admin/index.php
r270 r320 84 84 $title = ($fav['name'] == 'posts' ? sprintf($str_entries,$post_count) : 85 85 ($fav['name'] == 'comments' ? sprintf($str_comments,$comment_count) : $fav['title'])); 86 $__dashboard_icons[$fav['name']] = new ArrayObject(array( $title,$fav['url'],$fav['large-icon']));86 $__dashboard_icons[$fav['name']] = new ArrayObject(array(__($title),$fav['url'],$fav['large-icon'])); 87 87 88 88 # Let plugins set their own title for favorite on dashboard … … 99 99 $title = ($fav['name'] == 'posts' ? sprintf($str_entries,$post_count) : 100 100 ($fav['name'] == 'comments' ? sprintf($str_comments,$comment_count) : $fav['title'])); 101 $__dashboard_icons[$fav['name']] = new ArrayObject(array( $title,$fav['url'],$fav['large-icon']));101 $__dashboard_icons[$fav['name']] = new ArrayObject(array(__($title),$fav['url'],$fav['large-icon'])); 102 102 103 103 # Let plugins set their own title for favorite on dashboard -
admin/js/_index.js
r297 r343 65 65 // allow to hide quick entry div, and remember choice 66 66 $('#quick h3').toggleWithLegend($('#quick').children().not('h3'),{ 67 cookie: 'dcx_quick_entry' ,68 } );67 cookie: 'dcx_quick_entry' 68 }, positionFooter); 69 69 }); -
admin/js/common.js
r299 r343 335 335 position: "static", 336 336 padding: ".75em 0", 337 width: "auto" ,337 width: "auto" 338 338 }); 339 339 } -
admin/preferences.php
r270 r324 499 499 form::field(array('order['.$k.']'),2,3,$count,'position','',false,'title="'.sprintf(__('position of %s'),$fav['title']).'"'). 500 500 form::hidden(array('dynorder[]','dynorder-'.$k.''),$k). 501 '<label for="fuk-'.$k.'">'.form::checkbox(array('remove[]','fuk-'.$k),$k). $fav['title'].'</label>'.501 '<label for="fuk-'.$k.'">'.form::checkbox(array('remove[]','fuk-'.$k),$k).__($fav['title']).'</label>'. 502 502 '</li>'; 503 503 } … … 542 542 $count++; 543 543 echo '<li id="fd-'.$k.'">'. 544 '<img src="'.$fav['small-icon'].'" alt="" /> '. $fav['title'].'</li>';544 '<img src="'.$fav['small-icon'].'" alt="" /> '.__($fav['title']).'</li>'; 545 545 } 546 546 } … … 568 568 echo '<li id="fa-'.$fav[0].'">'.'<label for="fak-'.$fav[0].'">'. 569 569 form::checkbox(array('append[]','fak-'.$fav[0]),$k). 570 '<img src="'.$fav[3].'" alt="" /> '.'<span class="zoom"><img src="'.$fav[4].'" alt="" /></span>'. $fav[1].571 '</label>'.'</li>';570 '<img src="'.$fav[3].'" alt="" /> '.'<span class="zoom"><img src="'.$fav[4].'" alt="" /></span>'. 571 __($fav[1]).'</label>'.'</li>'; 572 572 } 573 573 } -
inc/admin/lib.dc.page.php
r342 r343 272 272 } else { 273 273 $prof_url = http::getSelfURI(); 274 $prof_url .= (strpos($prof_url,'?') === false) ? '?' : '& amp;';274 $prof_url .= (strpos($prof_url,'?') === false) ? '?' : '&'; 275 275 $prof_url .= 'XDEBUG_PROFILE'; 276 $res .= '<p><a href="'. $prof_url.'">Trigger profiler</a></p>';276 $res .= '<p><a href="'.html::escapeURL($prof_url).'">Trigger profiler</a></p>'; 277 277 } 278 278 -
inc/admin/prepend.php
r270 r324 185 185 # NB : '*' in permissions means any, null means super admin only 186 186 187 $_fav['prefs'] = new ArrayObject(array('prefs', __('My preferences'),'preferences.php',187 $_fav['prefs'] = new ArrayObject(array('prefs','My preferences','preferences.php', 188 188 'images/menu/user-pref.png','images/menu/user-pref-b.png', 189 189 '*',null,null)); 190 190 191 $_fav['new_post'] = new ArrayObject(array('new_post', __('New entry'),'post.php',191 $_fav['new_post'] = new ArrayObject(array('new_post','New entry','post.php', 192 192 'images/menu/edit.png','images/menu/edit-b.png', 193 193 'usage,contentadmin',null,'menu-new-post')); 194 $_fav['posts'] = new ArrayObject(array('posts', __('Entries'),'posts.php',194 $_fav['posts'] = new ArrayObject(array('posts','Entries','posts.php', 195 195 'images/menu/entries.png','images/menu/entries-b.png', 196 196 'usage,contentadmin',null,null)); 197 $_fav['comments'] = new ArrayObject(array('comments', __('Comments'),'comments.php',197 $_fav['comments'] = new ArrayObject(array('comments','Comments','comments.php', 198 198 'images/menu/comments.png','images/menu/comments-b.png', 199 199 'usage,contentadmin',null,null)); 200 $_fav['search'] = new ArrayObject(array('search', __('Search'),'search.php',200 $_fav['search'] = new ArrayObject(array('search','Search','search.php', 201 201 'images/menu/search.png','images/menu/search-b.png', 202 202 'usage,contentadmin',null,null)); 203 $_fav['categories'] = new ArrayObject(array('categories', __('Categories'),'categories.php',203 $_fav['categories'] = new ArrayObject(array('categories','Categories','categories.php', 204 204 'images/menu/categories.png','images/menu/categories-b.png', 205 205 'categories',null,null)); 206 $_fav['media'] = new ArrayObject(array('media', __('Media manager'),'media.php',206 $_fav['media'] = new ArrayObject(array('media','Media manager','media.php', 207 207 'images/menu/media.png','images/menu/media-b.png', 208 208 'media,media_admin',null,null)); 209 $_fav['blog_pref'] = new ArrayObject(array('blog_pref', __('Blog settings'),'blog_pref.php',209 $_fav['blog_pref'] = new ArrayObject(array('blog_pref','Blog settings','blog_pref.php', 210 210 'images/menu/blog-pref.png','images/menu/blog-pref-b.png', 211 211 'admin',null,null)); 212 $_fav['blog_theme'] = new ArrayObject(array('blog_theme', __('Blog appearance'),'blog_theme.php',212 $_fav['blog_theme'] = new ArrayObject(array('blog_theme','Blog appearance','blog_theme.php', 213 213 'images/menu/themes.png','images/menu/blog-theme-b.png', 214 214 'admin',null,null)); 215 215 216 $_fav['blogs'] = new ArrayObject(array('blogs', __('Blogs'),'blogs.php',216 $_fav['blogs'] = new ArrayObject(array('blogs','Blogs','blogs.php', 217 217 'images/menu/blogs.png','images/menu/blogs-b.png', 218 218 'usage,contentadmin',null,null)); 219 $_fav['users'] = new ArrayObject(array('users', __('Users'),'users.php',219 $_fav['users'] = new ArrayObject(array('users','Users','users.php', 220 220 'images/menu/users.png','images/menu/users-b.png', 221 221 null,null,null)); 222 $_fav['plugins'] = new ArrayObject(array('plugins', __('Plugins'),'plugins.php',222 $_fav['plugins'] = new ArrayObject(array('plugins','Plugins','plugins.php', 223 223 'images/menu/plugins.png','images/menu/plugins-b.png', 224 224 null,null,null)); 225 $_fav['langs'] = new ArrayObject(array('langs', __('Languages'),'langs.php',225 $_fav['langs'] = new ArrayObject(array('langs','Languages','langs.php', 226 226 'images/menu/langs.png','images/menu/langs-b.png', 227 227 null,null,null)); … … 311 311 $count++; 312 312 $fav = unserialize($v['value']); 313 $_menu['Favorites']->addItem( $fav['title'],$fav['url'],$fav['small-icon'],313 $_menu['Favorites']->addItem(__($fav['title']),$fav['url'],$fav['small-icon'], 314 314 preg_match(dc_prepare_url($fav['url']),$_SERVER['REQUEST_URI']), 315 315 (($fav['permissions'] == '*') || $core->auth->check($fav['permissions'],$core->blog->id)),$fav['id'],$fav['class']); … … 321 321 $count++; 322 322 $fav = unserialize($v['value']); 323 $_menu['Favorites']->addItem( $fav['title'],$fav['url'],$fav['small-icon'],323 $_menu['Favorites']->addItem(__($fav['title']),$fav['url'],$fav['small-icon'], 324 324 preg_match(dc_prepare_url($fav['url']),$_SERVER['REQUEST_URI']), 325 325 (($fav['permissions'] == '*') || $core->auth->check($fav['permissions'],$core->blog->id)),$fav['id'],$fav['class']); -
inc/dbschema/upgrade.php
r270 r324 149 149 $init_fav = array(); 150 150 151 $init_fav['new_post'] = array('new_post', __('New entry'),'post.php',151 $init_fav['new_post'] = array('new_post','New entry','post.php', 152 152 'images/menu/edit.png','images/menu/edit-b.png', 153 153 'usage,contentadmin',null,'menu-new-post'); 154 $init_fav['posts'] = array('posts', __('Entries'),'posts.php',154 $init_fav['posts'] = array('posts','Entries','posts.php', 155 155 'images/menu/entries.png','images/menu/entries-b.png', 156 156 'usage,contentadmin',null,null); 157 $init_fav['comments'] = array('comments', __('Comments'),'comments.php',157 $init_fav['comments'] = array('comments','Comments','comments.php', 158 158 'images/menu/comments.png','images/menu/comments-b.png', 159 159 'usage,contentadmin',null,null); 160 $init_fav['prefs'] = array('prefs', __('My preferences'),'preferences.php',160 $init_fav['prefs'] = array('prefs','My preferences','preferences.php', 161 161 'images/menu/user-pref.png','images/menu/user-pref-b.png', 162 162 '*',null,null); 163 $init_fav['blog_pref'] = array('blog_pref', __('Blog settings'),'blog_pref.php',163 $init_fav['blog_pref'] = array('blog_pref','Blog settings','blog_pref.php', 164 164 'images/menu/blog-pref.png','images/menu/blog-pref-b.png', 165 165 'admin',null,null); 166 $init_fav['blog_theme'] = array('blog_theme', __('Blog appearance'),'blog_theme.php',166 $init_fav['blog_theme'] = array('blog_theme','Blog appearance','blog_theme.php', 167 167 'images/menu/themes.png','images/menu/blog-theme-b.png', 168 168 'admin',null,null); 169 169 170 $init_fav['pages'] = array('pages', __('Pages'),'plugin.php?p=pages',170 $init_fav['pages'] = array('pages','Pages','plugin.php?p=pages', 171 171 'index.php?pf=pages/icon.png','index.php?pf=pages/icon-big.png', 172 172 'contentadmin,pages',null,null); 173 $init_fav['blogroll'] = array('blogroll', __('Blogroll'),'plugin.php?p=blogroll',173 $init_fav['blogroll'] = array('blogroll','Blogroll','plugin.php?p=blogroll', 174 174 'index.php?pf=blogroll/icon-small.png','index.php?pf=blogroll/icon.png', 175 175 'usage,contentadmin',null,null); … … 290 290 } 291 291 292 if (version_compare($version,'2.3.1','<')) 293 { 294 # Remove unecessary file 295 @unlink(DC_ROOT.'/'.'inc/libs/clearbricks/.hgignore'); 296 } 297 298 292 299 $core->setVersion('core',DC_VERSION); 293 300 $core->blogDefaults(); -
inc/public/class.dc.template.php
r270 r341 563 563 } 564 564 565 if (empty($attr['no_context']) )565 if (empty($attr['no_context']) && !isset($attr['category'])) 566 566 { 567 567 $p .= … … 1324 1324 if (empty($attr['no_context'])) 1325 1325 { 1326 $p .= 1327 'if ($_ctx->exists("users")) { '. 1328 "\$params['user_id'] = \$_ctx->users->user_id; ". 1329 "}\n"; 1326 if (!isset($attr['author'])) 1327 { 1328 $p .= 1329 'if ($_ctx->exists("users")) { '. 1330 "\$params['user_id'] = \$_ctx->users->user_id; ". 1331 "}\n"; 1332 } 1330 1333 1331 $p .= 1332 'if ($_ctx->exists("categories")) { '. 1333 "\$params['cat_id'] = \$_ctx->categories->cat_id; ". 1334 "}\n"; 1334 if (!isset($attr['category']) && (!isset($attr['no_category']) || !$attr['no_category'])) 1335 { 1336 $p .= 1337 'if ($_ctx->exists("categories")) { '. 1338 "\$params['cat_id'] = \$_ctx->categories->cat_id; ". 1339 "}\n"; 1340 } 1335 1341 1336 1342 $p .= -
plugins/antispam/_admin.php
r270 r324 29 29 function antispamDashboardFavs($core,$favs) 30 30 { 31 $favs['antispam'] = new ArrayObject(array('antispam', __('Antispam'),'plugin.php?p=antispam',31 $favs['antispam'] = new ArrayObject(array('antispam','Antispam','plugin.php?p=antispam', 32 32 'index.php?pf=antispam/icon.png','index.php?pf=antispam/icon-big.png', 33 33 'admin',null,null)); -
plugins/blogroll/_admin.php
r270 r324 20 20 function blogroll_dashboard_favs($core,$favs) 21 21 { 22 $favs['blogroll'] = new ArrayObject(array('blogroll', __('Blogroll'),'plugin.php?p=blogroll',22 $favs['blogroll'] = new ArrayObject(array('blogroll','Blogroll','plugin.php?p=blogroll', 23 23 'index.php?pf=blogroll/icon-small.png','index.php?pf=blogroll/icon.png', 24 24 'usage,contentadmin',null,null)); -
plugins/importExport/_admin.php
r270 r324 25 25 function importExportDashboardFavs($core,$favs) 26 26 { 27 $favs['importExport'] = new ArrayObject(array('importExport', __('Import/Export'),'plugin.php?p=importExport',27 $favs['importExport'] = new ArrayObject(array('importExport','Import/Export','plugin.php?p=importExport', 28 28 'index.php?pf=importExport/icon.png','index.php?pf=importExport/icon-big.png', 29 29 'admin',null,null)); -
plugins/importExport/inc/flat/class.dc.import.php
r270 r298 371 371 private function insertPref($pref) 372 372 { 373 if ($this->prefExists($pref->pref_ws,$pref->pref_id,$pref->user_id)) { 374 return; 375 } 376 373 377 $this->cur_pref->clean(); 374 378 … … 751 755 $this->stack['users'][$user_id] = !$rs->isEmpty(); 752 756 return $this->stack['users'][$user_id]; 757 } 758 759 private function prefExists($pref_ws,$pref_id,$user_id) 760 { 761 $strReq = 'SELECT pref_id,pref_ws,user_id '. 762 'FROM '.$this->prefix.'pref '. 763 "WHERE pref_id = '".$this->con->escape($pref_id)."' ". 764 "AND pref_ws = '".$this->con->escape($pref_ws)."' "; 765 if (!$user_id) { 766 $strReq .= "AND user_id IS NULL "; 767 } else { 768 $strReq .= "AND user_id = '".$this->con->escape($user_id)."' "; 769 } 770 771 $rs = $this->con->select($strReq); 772 773 return !$rs->isEmpty(); 753 774 } 754 775 -
plugins/maintenance/_admin.php
r270 r324 20 20 function maintenanceDashboardFavs($core,$favs) 21 21 { 22 $favs['maintenance'] = new ArrayObject(array('maintenance', __('Maintenance'),'plugin.php?p=maintenance',22 $favs['maintenance'] = new ArrayObject(array('maintenance','Maintenance','plugin.php?p=maintenance', 23 23 'index.php?pf=maintenance/icon.png','index.php?pf=maintenance/icon-big.png', 24 24 null,null,null)); -
plugins/pages/_admin.php
r270 r324 21 21 function pages_dashboard_favs($core,$favs) 22 22 { 23 $favs['pages'] = new ArrayObject(array('pages', __('Pages'),'plugin.php?p=pages',23 $favs['pages'] = new ArrayObject(array('pages','Pages','plugin.php?p=pages', 24 24 'index.php?pf=pages/icon.png','index.php?pf=pages/icon-big.png', 25 25 'contentadmin,pages',null,null)); 26 $favs['newpage'] = new ArrayObject(array('newpage', __('New page'),'plugin.php?p=pages&act=page',26 $favs['newpage'] = new ArrayObject(array('newpage','New page','plugin.php?p=pages&act=page', 27 27 'index.php?pf=pages/icon-np.png','index.php?pf=pages/icon-np-big.png', 28 28 'contentadmin,pages',null,null)); -
plugins/pings/_admin.php
r270 r324 41 41 function pingDashboardFavs($core,$favs) 42 42 { 43 $favs['pings'] = new ArrayObject(array('pings', __('Pings'),'plugin.php?p=pings',43 $favs['pings'] = new ArrayObject(array('pings','Pings','plugin.php?p=pings', 44 44 'index.php?pf=pings/icon.png','index.php?pf=pings/icon-big.png', 45 45 null,null,null)); -
plugins/tags/_admin.php
r270 r324 45 45 public static function dashboardFavs($core,$favs) 46 46 { 47 $favs['tags'] = new ArrayObject(array('tags', __('Tags'),'plugin.php?p=tags&m=tags',47 $favs['tags'] = new ArrayObject(array('tags','Tags','plugin.php?p=tags&m=tags', 48 48 'index.php?pf=tags/icon.png','index.php?pf=tags/icon-big.png', 49 49 'usage,contentadmin',null,null)); -
plugins/widgets/_admin.php
r270 r324 16 16 function widgets_dashboard_favs($core,$favs) 17 17 { 18 $favs['widgets'] = new ArrayObject(array('widgets', __('Presentation widgets'),'plugin.php?p=widgets',18 $favs['widgets'] = new ArrayObject(array('widgets','Presentation widgets','plugin.php?p=widgets', 19 19 'index.php?pf=widgets/icon.png','index.php?pf=widgets/icon-big.png', 20 20 'admin',null,null));
Note: See TracChangeset
for help on using the changeset viewer.