Merge remote branch 'origin/master' into translation-staging

This commit is contained in:
TeamCity 2012-10-04 04:28:21 +13:00
commit 3cb30a9319
3 changed files with 4 additions and 4 deletions

View File

@ -6,6 +6,7 @@ class CMSSettingsController extends LeftAndMain {
static $menu_priority = -1;
static $menu_title = 'Settings';
static $tree_class = 'SiteConfig';
static $required_permission_codes = array('EDIT_SITECONFIG');
public function getResponseNegotiator() {
$neg = parent::getResponseNegotiator();

View File

@ -1569,8 +1569,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
$votes = $this->extend('augmentValidURLSegment');
if($votes) {
$votes = array_filter((array)$votes, 'is_null');
if($votes) return min($votes);
return min($votes);
}
return true;

View File

@ -5,7 +5,7 @@
*
* Input validation on the URLSegment field
*/
$('.field.urlsegment').entwine({
$('.field.urlsegment:not(.readonly)').entwine({
/**
* Constructor: onmatch