|
@@ 136-140 (lines=5) @@
|
| 133 |
|
|
| 134 |
|
$parent = $this->lib_category->get_category($data['parent_id']); |
| 135 |
|
|
| 136 |
|
if ($parent != 'NULL') { |
| 137 |
|
$full_path = $parent['path_url'] . $data['url'] . '/'; |
| 138 |
|
} else { |
| 139 |
|
$full_path = $data['url'] . '/'; |
| 140 |
|
} |
| 141 |
|
|
| 142 |
|
if (($this->category_exists($full_path) == TRUE) AND ($action != 'update') AND ($data['url'] != 'core')) { |
| 143 |
|
$data['url'] .= time(); |
|
@@ 561-565 (lines=5) @@
|
| 558 |
|
|
| 559 |
|
$parent = $this->lib_category->get_category($data['parent_id']); |
| 560 |
|
|
| 561 |
|
if ($parent != 'NULL') { |
| 562 |
|
$full_path = $parent['path_url'] . $data['url'] . '/'; |
| 563 |
|
} else { |
| 564 |
|
$full_path = $data['url'] . '/'; |
| 565 |
|
} |
| 566 |
|
|
| 567 |
|
if (($this->category_exists($full_path) == TRUE) AND ($action != 'update') AND ($data['url'] != 'core')) { |
| 568 |
|
$data['url'] .= time(); |