Skip to content

Commit

Permalink
MINOR removed concurrent editing (merged from r91198)
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@91204 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information
chillu authored and Sam Minnee committed Feb 2, 2011
1 parent 88a8c04 commit 654af79
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
14 changes: 7 additions & 7 deletions core/i18nTextCollector.php
Expand Up @@ -27,7 +27,7 @@
* @uses i18nEntityProvider
* @uses i18n
*/
class i18nTextCollector extends Object {
class i18nTextCollector extends BuildTask {

protected $defaultLocale;

Expand Down Expand Up @@ -75,13 +75,13 @@ public function run($restrictToModules = null) {
$entitiesByModule = array();

//Search for and process existent modules, or use the passed one instead
if($restrictToModules && count($restrictToModules)) {
foreach($restrictToModules as $restrictToModule) {
$modules[] = basename($restrictToModule);
}
} else {
// if($restrictToModules && count($restrictToModules)) {
// foreach($restrictToModules as $restrictToModule) {
// $modules[] = basename($restrictToModule);
// }
// } else {
$modules = scandir($this->basePath);
}
// }

foreach($modules as $module) {
// Only search for calls in folder with a _config.php file (which means they are modules)
Expand Down
3 changes: 0 additions & 3 deletions core/model/SiteTree.php
Expand Up @@ -100,15 +100,13 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
"ImageTracking" => "File",
"ViewerGroups" => "Group",
"EditorGroups" => "Group",
"UsersCurrentlyEditing" => "Member",
);

static $belongs_many_many = array(
"BackLinkTracking" => "SiteTree"
);

static $many_many_extraFields = array(
"UsersCurrentlyEditing" => array("LastPing" => "SS_Datetime"),
"LinkTracking" => array("FieldName" => "Varchar"),
"ImageTracking" => array("FieldName" => "Varchar")
);
Expand Down Expand Up @@ -1579,7 +1577,6 @@ function getCMSFields() {
$fields = new FieldSet(
// Add a field with a bit of metadata for concurrent editing. The fact that we're using
// non-standard attributes does not really matter, all modern UA's just ignore em.
new LiteralField("SiteTree_Alert", '<div deletedfromstage="'.((int) $this->getIsDeletedFromStage()).'" id="SiteTree_Alert"></div>'),
new TabSet("Root",
$tabContent = new TabSet('Content',
$tabMain = new Tab('Main',
Expand Down

0 comments on commit 654af79

Please sign in to comment.