1
0
mirror of synced 2024-12-14 07:06:04 +03:00
This commit is contained in:
Jonathan.Wage 2007-11-08 19:01:22 +00:00
parent 0038138095
commit 769fd478ad
2 changed files with 3 additions and 4 deletions

View File

@ -1010,7 +1010,7 @@ final class Doctrine
/** /**
* classifyCallback * classifyCallback
* *
* Callback function to classify a classname propperly. * Callback function to classify a classname properly.
* *
* @param array $matches An array of matches from a pcre_replace call * @param array $matches An array of matches from a pcre_replace call
* @return string A string with matches 1 and mathces 3 in upper case. * @return string A string with matches 1 and mathces 3 in upper case.
@ -1047,8 +1047,7 @@ final class Doctrine
*/ */
public static function makeDirectories($path, $mode = 0777) public static function makeDirectories($path, $mode = 0777)
{ {
if (is_dir($path) || is_file($path)) if (is_dir($path) || is_file($path)) {
{
return true; return true;
} }

View File

@ -79,7 +79,7 @@ class Doctrine_Template_I18n extends Doctrine_Template
$id = $this->_table->getIdentifier(); $id = $this->_table->getIdentifier();
$this->hasMany($className . ' as Translation', array('local' => $id, 'foreign' => $id)); $this->hasMany($className . ' as Translation', array('local' => $id[0], 'foreign' => $id[0]));
} }
/** /**