Skip to content

Commit

Permalink
Better use of IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
benwerd committed Apr 28, 2021
1 parent f6c7185 commit 7388268
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ function registerTranslations()
function registerPages()
{
\Idno\Core\Idno::site()->routes()->addRoute('/media/edit/?', '\IdnoPlugins\Media\Pages\Edit');
\Idno\Core\Idno::site()->routes()->addRoute('/media/edit/([A-Za-z0-9\-]+)/?', '\IdnoPlugins\Media\Pages\Edit');
\Idno\Core\Idno::site()->routes()->addRoute('/media/delete/([A-Za-z0-9\-]+)/?', '\IdnoPlugins\Media\Pages\Delete');
\Idno\Core\Idno::site()->routes()->addRoute('/media/edit/:id/?', '\IdnoPlugins\Media\Pages\Edit');
\Idno\Core\Idno::site()->routes()->addRoute('/media/delete/:id/?', '\IdnoPlugins\Media\Pages\Delete');

\Idno\Core\Idno::site()->template()->extendTemplate('shell/head', 'media/shell/head');
\Idno\Core\Idno::site()->template()->extendTemplate('shell/footer', 'media/shell/footer');
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "idno/media",
"description": "Upload audio or music and turn your site into a podcast.",
"type": "known-plugin",
"version": "1.0.1",
"version": "1.0.2",
"require": {
"composer/installers": "~1.0"
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Media",
"version": "1.0.1",
"version": "1.0.2",
"devDependencies": {
"grunt": "^0.4.5"
}
Expand Down
2 changes: 1 addition & 1 deletion plugin.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

[Plugin description]
name = 'Audio'
version = '1.0.1'
version = '1.0.2'
author = 'Known'
author_email = '[email protected]'
author_url = 'https://withknown.com'
Expand Down

0 comments on commit 7388268

Please sign in to comment.