PluginProbe
CSS & JavaScript Toolbox / 11.2
CSS & JavaScript Toolbox v11.2
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 +2 -3 trunk11.2 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->getNextIdNEW();
60 + $block['id'] = $blocks->getNextId();
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,10 +111,9 @@
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.
116 - $block->id = $blocks->getNextIdNEW(); // Get new id for revision rrecord.
115 + $block->id = $blocks->getNextId(); // Get new id for revision rrecord.
117 116 // Add block data.
118 117 $blocks->insert($block);
119 118 // Get block pins and insert pins for the revision block.
120 119 $blockPins = $pins->get($blockId);