]> git.proxmox.com Git - pve-common.git/commitdiff
fix typo
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 2 May 2014 05:06:25 +0000 (07:06 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 2 May 2014 05:06:25 +0000 (07:06 +0200)
data/PVE/RESTHandler.pm

index e1fb823ac9279cafb4dcef767b04b677a4ea6b7a..a149e8a293ba44e55b4817a08e66013d9b214ad2 100644 (file)
@@ -235,7 +235,7 @@ sub register_method {
     push @{$method_registry->{$self}}, $info;
 }
 
-sub register_page_formater {
+sub register_page_formatter {
     my ($self, %config) = @_;
 
     my $format = $config{format} ||
@@ -248,16 +248,16 @@ sub register_page_formater {
        die "missing method";
        
     my $code = $config{code} ||
-       die "missing formater code";
+       die "missing formatter code";
     
     my $uri_param = {};
     my ($handler, $info) = $self->find_handler($method, $path, $uri_param);
     die "unabe to find handler for '$method: $path'" if !($handler && $info);
 
-    die "duplicate formater for '$method: $path'" 
-       if $info->{formater} && $info->{formater}->{$format};
+    die "duplicate formatter for '$method: $path'" 
+       if $info->{formatter} && $info->{formatter}->{$format};
 
-    $info->{formater}->{$format} = $code;
+    $info->{formatter}->{$format} = $code;
 }
 
 sub AUTOLOAD {