diff options
author | xue <> | 2007-07-25 11:24:00 +0000 |
---|---|---|
committer | xue <> | 2007-07-25 11:24:00 +0000 |
commit | 9538f03d2a7bdc61c6338fabe2d33d134bfc21fc (patch) | |
tree | 9a62f24d8001f182139a8d11ca1fac658105f7fe /framework/Web | |
parent | 6e3ad1ec3cdeaef821ae6ff96762bec038ded36e (diff) |
Changed URL token.
Diffstat (limited to 'framework/Web')
-rw-r--r-- | framework/Web/UI/WebControls/TPager.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/Web/UI/WebControls/TPager.php b/framework/Web/UI/WebControls/TPager.php index 1248bbe4..9803e1f5 100644 --- a/framework/Web/UI/WebControls/TPager.php +++ b/framework/Web/UI/WebControls/TPager.php @@ -274,8 +274,8 @@ class TPager extends TWebControl implements INamingContainer /**
* Sets the image URL for the numeric page buttons.
* This is actually a template for generating a set of URLs corresponding to numeric button 1, 2, 3, .., etc.
- * Use [0] as the placeholder for the numbers.
- * For example, the image URL http://example.com/images/button[0].gif
+ * Use {0} as the placeholder for the numbers.
+ * For example, the image URL http://example.com/images/button{0}.gif
* will be replaced as http://example.com/images/button1.gif, http://example.com/images/button2.gif, etc.
* @param string the image URL for the numeric page buttons. This is only used when {@link getButtonType ButtonType} is 'ImageButton' and {@link getMode Mode} is 'Numeric'.
* @since 3.1.1
@@ -472,7 +472,7 @@ class TPager extends TWebControl implements INamingContainer {
case self::CMD_PAGE:
$url=$this->getNumericPageImageUrl();
- return str_replace('[0]',$text,$url);
+ return str_replace('{0}',$text,$url);
case self::CMD_PAGE_NEXT:
return $this->getNextPageImageUrl();
case self::CMD_PAGE_PREV:
|