PluginProbe
CSS & JavaScript Toolbox / 12.0
CSS & JavaScript Toolbox v12.0
trunk 0.3 0.8 10 10.1 11 11.2 11.3 11.4 11.5 11.6 11.7 11.8 11.9 11.9.1 12 12.0 12.0.1 12.0.3 12.0.4 12.0.5 12.0.6 12.0.7 6.0 6.0.11 All 60 releases
← All changes | models/blocks.php +3 -2 1112.0 View file →
@@ -56,9 +56,9 @@
56 56 $blocks = new CJTBlocksTable($this->dbDriver);
57 57 $codeFile = new CJTBlockFilesTable($this->dbDriver);
58 58 // Get new id if not specified.
59 59 if (!isset($block['id']) || !$block['id']) {
60 - $block['id'] = $blocks->getNextId();
60 + $block['id'] = $blocks->getNextIdNEW();
61 61 }
62 62 // Backward compatibility for old block style
63 63 // that has code field inside blocks table.
64 64 /// if passed create master code file for the code field.
@@ -111,9 +111,10 @@
111 111 $block->created = current_time('mysql');
112 112 $block->owner = get_current_user_id();
113 113 $block->masterFile = $activeFileId; // Only the revisioned code file would be exists and must be
114 114 // used as the masterFile!
115 - $block->id = $blocks->getNextId(); // Get new id for revision rrecord.
115 + //$block->id = $blocks->getNextId(); // Get new id for revision rrecord.
116 + $block->id = $blocks->getNextIdNEW(); // Get new id for revision rrecord.
116 117 // Add block data.
117 118 $blocks->insert($block);
118 119 // Get block pins and insert pins for the revision block.
119 120 $blockPins = $pins->get($blockId);