Skip to content

Commit

Permalink
Bug fix for ticket #51 Strict Standards
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisJordan committed Feb 4, 2009
1 parent 6e79042 commit ff2686a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions bootstrap.php
Expand Up @@ -6,6 +6,7 @@
*/
$_ENV['dir.bootstrap'] = str_replace('\\','/',realpath(dirname(__FILE__))) . '/';
$_ENV['url.base'] = str_replace('bootstrap.php', '', $_SERVER['PHP_SELF']);
if(strpos($_SERVER['REQUEST_URI'],'/bootstrap.php')===0) exit;

$bootstrapped = true;
require_once('./recess-conf.php');
Expand Down
2 changes: 1 addition & 1 deletion recess/lib/recess/database/orm/ModelDataSource.class.php
Expand Up @@ -38,7 +38,7 @@ function modelToTableDescriptor(ModelDescriptor $descriptor) {
return $tableDescriptor;
}

function createTableSql(ModelDescriptor $descriptor) {
function createTableSql($descriptor) {
return parent::createTableSql($this->modelToTableDescriptor($descriptor));
}

Expand Down
2 changes: 1 addition & 1 deletion recess/lib/recess/database/pdo/PdoDataSource.class.php
Expand Up @@ -226,7 +226,7 @@ function emptyTable($table) {
return $this->provider->emptyTable($table);
}

function createTableSql(RecessTableDescriptor $tableDescriptor) {
function createTableSql($tableDescriptor) {
return $this->provider->createTableSql($tableDescriptor);
}
}
Expand Down
4 changes: 2 additions & 2 deletions recess/lib/recess/lang/RecessReflectionClass.class.php
Expand Up @@ -22,9 +22,9 @@
* @link http://www.recessframework.org/
*/
class RecessReflectionClass extends ReflectionClass {
function getProperties() {
function getProperties($filter = '') {
Library::import('recess.lang.RecessReflectionProperty');
$rawProperties = parent::getProperties();
$rawProperties = parent::getProperties($filter);
$properties = array();
foreach($rawProperties as $rawProperty) {
$properties[] = new RecessReflectionProperty($this->name, $rawProperty->name);
Expand Down

0 comments on commit ff2686a

Please sign in to comment.