[Rt-commit] r2977 - in rt/branches/CHALDEA-EXPERIMENTAL: . lib/RT

jesse at bestpractical.com jesse at bestpractical.com
Mon May 30 00:51:07 EDT 2005


Author: jesse
Date: Mon May 30 00:51:07 2005
New Revision: 2977

Modified:
   rt/branches/CHALDEA-EXPERIMENTAL/   (props changed)
   rt/branches/CHALDEA-EXPERIMENTAL/lib/RT/Link_Overlay.pm
   rt/branches/CHALDEA-EXPERIMENTAL/lib/RT/URI.pm
Log:
 r17985 at hualien:  jesse | 2005-05-30 00:44:43 -0400
 * Links API wasn\'t as promised. cleaned up


Modified: rt/branches/CHALDEA-EXPERIMENTAL/lib/RT/Link_Overlay.pm
==============================================================================
--- rt/branches/CHALDEA-EXPERIMENTAL/lib/RT/Link_Overlay.pm	(original)
+++ rt/branches/CHALDEA-EXPERIMENTAL/lib/RT/Link_Overlay.pm	Mon May 30 00:51:07 2005
@@ -348,7 +348,7 @@
 sub BaseAsHREF {
   my $self = shift;
   $RT::Logger->crit("Link::BaseAsHREF deprecated in favor of ->BaseURI->AsHREF");
-  return $self->BaseURI->HREF;
+  return $self->BaseURI->AsHREF;
 }
 # }}}
 
@@ -363,7 +363,7 @@
 sub TargetAsHREF {
   my $self = shift;
   $RT::Logger->crit("Link::TargetAsHREF deprecated in favor of ->TargetURI->AsHREF");
-  return $self->TargetURI->HREF;
+  return $self->TargetURI->AsHREF;
 }
 # }}}
 

Modified: rt/branches/CHALDEA-EXPERIMENTAL/lib/RT/URI.pm
==============================================================================
--- rt/branches/CHALDEA-EXPERIMENTAL/lib/RT/URI.pm	(original)
+++ rt/branches/CHALDEA-EXPERIMENTAL/lib/RT/URI.pm	Mon May 30 00:51:07 2005
@@ -250,7 +250,17 @@
 
 # }}}
 
+=head2 AsHREF
 
+
+=cut
+
+
+sub AsHREF {
+    my $self = shift;
+    return $self->Resolver->HREF;
+
+}
 =head Resolver
 
 Returns this URI's URI resolver object


More information about the Rt-commit mailing list