| @@ -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); |