summaryrefslogtreecommitdiff
path: root/framework/PradoBase.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/PradoBase.php')
-rw-r--r--framework/PradoBase.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/framework/PradoBase.php b/framework/PradoBase.php
index aab9aac8..16a27b08 100644
--- a/framework/PradoBase.php
+++ b/framework/PradoBase.php
@@ -103,7 +103,14 @@ class PradoBase
*/
public static function poweredByPrado()
{
- return '<a title="Powered by PRADO" href="http://www.pradosoft.com/" target="_blank"><img src="http://www.pradosoft.com/images/powered.gif" style="border-width:0px;" alt="Powered by PRADO" /></a>';
+ if(self::$_application!==null)
+ {
+ $am=self::$_application->getAssetManager();
+ $url=$am->publishFilePath(self::getPathOfNamespace('System.powered','.gif'));
+ }
+ else
+ $url='http://www.pradosoft.com/images/powered.gif';
+ return '<a title="Powered by PRADO" href="http://www.pradosoft.com/" target="_blank"><img src="'.$url.'" style="border-width:0px;" alt="Powered by PRADO" /></a>';
}
/**