1_7
5 days ago
1_7_2
5 days ago
1_6.php
5 days ago
1_6_4.php
5 days ago
1_7.php
5 days ago
1_7_2.php
5 days ago
index.html
5 days ago
1_7_2.php
35 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @package VikAppointments |
| 4 | * @subpackage core |
| 5 | * @author E4J s.r.l. |
| 6 | * @copyright Copyright (C) 2021 E4J s.r.l. All Rights Reserved. |
| 7 | * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL |
| 8 | * @link https://vikwp.com |
| 9 | */ |
| 10 | |
| 11 | // No direct access |
| 12 | defined('ABSPATH') or die('No script kiddies please!'); |
| 13 | |
| 14 | /** |
| 15 | * Update adapter for com_vikappointments 1.7.2 version. |
| 16 | * |
| 17 | * NOTE. do not call exit() or die() because the update won't be finalised correctly. |
| 18 | * Return false instead to stop in anytime the flow without errors. |
| 19 | * |
| 20 | * @since 1.7.2 |
| 21 | */ |
| 22 | class VAPUpdateAdapter1_7_2 extends VAPUpdateAdapter |
| 23 | { |
| 24 | /** |
| 25 | * Class constructor. |
| 26 | */ |
| 27 | public function __construct() |
| 28 | { |
| 29 | JModelLegacy::addIncludePath(VAPADMIN . DIRECTORY_SEPARATOR . 'models'); |
| 30 | |
| 31 | // setup after update rules |
| 32 | $this->attachRule('afterupdate', 'fix_modules_update_error'); |
| 33 | } |
| 34 | } |
| 35 |