diff options
author | as:ez.no <dev-null@apache.org> | 2006-11-15 15:41:23 +0000 |
---|---|---|
committer | as:ez.no <dev-null@apache.org> | 2006-11-15 15:41:23 +0000 |
commit | f0ba476d0e13a29df9a36eebcad17c8859a66eda (patch) | |
tree | bffe8724dcffba2df2a0fb3b214e898604fc227f /src/options | |
parent | 6c6313b628480826a73968e9675e2049a86e9b61 (diff) | |
download | zetacomponents-graph-f0ba476d0e13a29df9a36eebcad17c8859a66eda.zip zetacomponents-graph-f0ba476d0e13a29df9a36eebcad17c8859a66eda.tar.gz |
- Using ezcBaseFeatures instead of function_exists().
Diffstat (limited to 'src/options')
-rw-r--r-- | src/options/gd_driver.php | 2 | ||||
-rw-r--r-- | src/options/pie_chart.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/options/gd_driver.php b/src/options/gd_driver.php index 37000f7..0928ddb 100644 --- a/src/options/gd_driver.php +++ b/src/options/gd_driver.php @@ -118,7 +118,7 @@ class ezcGraphGdDriverOptions extends ezcGraphDriverOptions } break; case 'resampleFunction': - if ( function_exists( $propertyValue ) ) + if ( ezcBaseFeatures::hasFunction( $propertyValue ) ) { $this->properties['resampleFunction'] = $propertyValue; } diff --git a/src/options/pie_chart.php b/src/options/pie_chart.php index c52a173..8e47be7 100644 --- a/src/options/pie_chart.php +++ b/src/options/pie_chart.php @@ -72,7 +72,7 @@ class ezcGraphPieChartOptions extends ezcGraphChartOptions $this->properties['label'] = (string) $propertyValue; break; case 'labelCallback': - if ( is_string( $propertyValue ) && function_exists( $propertyValue ) ) + if ( is_string( $propertyValue ) && ezcBaseFeatures::hasFunction( $propertyValue ) ) { $this->properties['labelCallback'] = $propertyValue; } |