You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by ch...@apache.org on 2008/06/28 18:20:21 UTC
svn commit: r672544 -
/incubator/shindig/trunk/php/src/gadgets/Substitutions.php
Author: chabotc
Date: Sat Jun 28 09:20:18 2008
New Revision: 672544
URL: http://svn.apache.org/viewvc?rev=672544&view=rev
Log:
Proper fix for URI's not being substitured
Modified:
incubator/shindig/trunk/php/src/gadgets/Substitutions.php
Modified: incubator/shindig/trunk/php/src/gadgets/Substitutions.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/gadgets/Substitutions.php?rev=672544&r1=672543&r2=672544&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/gadgets/Substitutions.php (original)
+++ incubator/shindig/trunk/php/src/gadgets/Substitutions.php Sat Jun 28 09:20:18 2008
@@ -70,7 +70,11 @@
return null;
}
try {
- return $this->substituteType($type, $uri);
+ if (!empty($type)) {
+ return $this->substituteType($type, $uri);
+ } else {
+ return $this->substitute($uri);
+ }
} catch (Exception $e) {
return "";
}