Skip to content

Commit 2793374

Browse files
author
lukaskleinschmidt
committed
Changed namespace
1 parent 3ba78ee commit 2793374

File tree

21 files changed

+45
-37
lines changed

21 files changed

+45
-37
lines changed

fields/modules/controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?php
22

3-
class ModulesFieldController extends Kirby\Sortable\Controllers\Field {}
3+
class ModulesFieldController extends LukasKleinschmidt\Sortable\Controllers\Field {}

fields/sortable/controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?php
22

3-
class SortableFieldController extends Kirby\Sortable\Controllers\Field {}
3+
class SortableFieldController extends LukasKleinschmidt\Sortable\Controllers\Field {}

fields/sortable/sortable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
use Kirby\Sortable\Sortable;
3+
use LukasKleinschmidt\Sortable;
44

55
// Load all registerd classes
66
sortable()->load();

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sortable",
3-
"version": "2.3.1",
3+
"version": "2.3.2",
44
"description": "Kirby Sortable",
55
"license": "MIT",
66
"type": "kirby-plugin",

sortable/actions/add/controller.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
class AddActionController extends Kirby\Sortable\Controllers\Action {
3+
class AddActionController extends LukasKleinschmidt\Sortable\Controllers\Action {
44

55
/**
66
* Add a entry
@@ -11,7 +11,7 @@ public function add() {
1111
$parent = $this->field()->origin();
1212

1313
if($parent->ui()->create() === false) {
14-
throw new PermissionsException();
14+
throw new Kirby\Panel\Exceptions\PermissionsException();
1515
}
1616

1717
$form = $this->form('add', array($parent, $this->model(), $this->field()), function($form) use($parent, $self) {

sortable/actions/copy/controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
class CopyActionController extends Kirby\Sortable\Controllers\Action {
3+
class CopyActionController extends LukasKleinschmidt\Sortable\Controllers\Action {
44

55
/**
66
* Save to clipboard

sortable/actions/delete/controller.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
class DeleteActionController extends Kirby\Sortable\Controllers\Action {
3+
class DeleteActionController extends LukasKleinschmidt\Sortable\Controllers\Action {
44

55
/**
66
* Delete a entry
@@ -13,7 +13,7 @@ public function delete($uid) {
1313
$page = $this->field()->entries()->find($uid);
1414

1515
if($page->ui()->delete() === false) {
16-
throw new PermissionsException();
16+
throw new Kirby\Panel\Exceptions\PermissionsException();
1717
}
1818

1919
$form = $this->form('delete', array($page, $this->model(), $this->field()), function($form) use($page, $self) {

sortable/actions/duplicate/controller.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
class DuplicateActionController extends Kirby\Sortable\Controllers\Action {
3+
class DuplicateActionController extends LukasKleinschmidt\Sortable\Controllers\Action {
44

55
/**
66
* Duplicate a entry
@@ -15,7 +15,7 @@ public function duplicate($uid, $to) {
1515
$page = $entries->find($uid);
1616

1717
if($parent->ui()->create() === false) {
18-
throw new PermissionsException();
18+
throw new Kirby\Panel\Exceptions\PermissionsException();
1919
}
2020

2121
$page = $this->copy($page, $parent);

sortable/actions/paste/controller.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
class PasteActionController extends Kirby\Sortable\Controllers\Action {
3+
class PasteActionController extends LukasKleinschmidt\Sortable\Controllers\Action {
44

55
/**
66
* Add from clipboard
@@ -18,7 +18,7 @@ public function paste() {
1818
$entries = pages($entries);
1919

2020
if($parent->ui()->create() === false) {
21-
throw new PermissionsException();
21+
throw new Kirby\Panel\Exceptions\PermissionsException();
2222
}
2323

2424
$form = $this->form('paste', array($parent, $entries, $this->model(), $this->field()), function($form) use($parent, $self) {

sortable/actions/toggle/controller.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?php
22

3-
class ToggleActionController extends Kirby\Sortable\Controllers\Action {
3+
use Kirby\Panel\Exceptions\PermissionsException;
4+
5+
class ToggleActionController extends LukasKleinschmidt\Sortable\Controllers\Action {
46

57
/**
68
* Show page

0 commit comments

Comments
 (0)