diff options
author | xue <> | 2007-03-31 13:30:05 +0000 |
---|---|---|
committer | xue <> | 2007-03-31 13:30:05 +0000 |
commit | a7db73d475f9732f3c785f388732692e1cb23543 (patch) | |
tree | aeaec6a6cf8930b448b79316d865adf22c2066f0 /framework | |
parent | 767bbb6d3db3b3068b8772b953cf9f040750dece (diff) |
Fixed #561.
Diffstat (limited to 'framework')
-rw-r--r-- | framework/PradoBase.php | 9 | ||||
-rw-r--r-- | framework/powered.gif | bin | 0 -> 1482 bytes |
2 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>';
}
/**
diff --git a/framework/powered.gif b/framework/powered.gif Binary files differnew file mode 100644 index 00000000..abad3b17 --- /dev/null +++ b/framework/powered.gif |