Skip to content

Commit

Permalink
search templates in templates/system
Browse files Browse the repository at this point in the history
  • Loading branch information
oetiker committed Apr 13, 2018
1 parent 1253847 commit b6b2deb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/CallBackery.pm
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ use CallBackery::Config;
use CallBackery::Plugin::Doc;
use CallBackery::Database;

our $VERSION = '0.12.6';
our $VERSION = '0.12.7';

use Mojo::Base 'Mojolicious';

Expand Down
2 changes: 1 addition & 1 deletion lib/CallBackery/GuiPlugin/Abstract.pm
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ sub renderTemplate{
my $template = shift;
my $destination = shift;
$self->log->debug('['.$self->name.'] processing template '.$template);
my $newData = $self->template->render($self->app->home->rel_file('share/'.$template)->slurp);
my $newData = $self->template->render($self->app->home->rel_file('templates/system/'.$template)->slurp);
if (-r $destination){
my $oldData = Mojo::File->new($destination)->slurp;
if ($newData eq $oldData){
Expand Down

0 comments on commit b6b2deb

Please sign in to comment.