Thread: [Isocial-svn] SF.net SVN: isocial: [47] akelos.diff
Status: Pre-Alpha
Brought to you by:
aguidrevitch
From: <agu...@us...> - 2008-03-09 12:49:42
|
Revision: 47 http://isocial.svn.sourceforge.net/isocial/?rev=47&view=rev Author: aguidrevitch Date: 2008-03-09 05:49:47 -0700 (Sun, 09 Mar 2008) Log Message: ----------- more patches to akelos : AkActiveRecord::count fixed Modified Paths: -------------- akelos.diff Modified: akelos.diff =================================================================== --- akelos.diff 2008-03-09 12:04:55 UTC (rev 46) +++ akelos.diff 2008-03-09 12:49:47 UTC (rev 47) @@ -1,8 +1,8 @@ Index: lib/Ak.php =================================================================== ---- lib/Ak.php (revision 500) +--- lib/Ak.php (revision 505) +++ lib/Ak.php (working copy) -@@ -186,6 +186,11 @@ +@@ -183,6 +183,11 @@ return @$string[$try_whith_lang]; } @@ -14,7 +14,7 @@ if(isset($controller) && !isset($framework_dictionary[$controller.'_dictionary']) && is_file(AK_APP_DIR.DS.'locales'.DS.$controller.DS.$lang.'.php')){ require(AK_APP_DIR.DS.'locales'.DS.$controller.DS.$lang.'.php'); $framework_dictionary[$controller.'_dictionary'] = (array)$dictionary; -@@ -193,6 +198,8 @@ +@@ -190,6 +195,8 @@ if(isset($controller) && isset($framework_dictionary[$controller.'_dictionary'][$string])){ $string = $framework_dictionary[$controller.'_dictionary'][$string]; @@ -25,7 +25,7 @@ } Index: lib/AkActiveRecord.php =================================================================== ---- lib/AkActiveRecord.php (revision 500) +--- lib/AkActiveRecord.php (revision 505) +++ lib/AkActiveRecord.php (working copy) @@ -4721,7 +4721,7 @@ $resulting_array = array(); @@ -36,3 +36,43 @@ } } return $resulting_array; +@@ -5003,8 +5003,27 @@ + + $sql .= empty($options['joins']) ? '' : " {$options['joins']} "; + ++ //$this->santizeSql(conditions); ++ if(!empty($options['conditions']) && is_array($options['conditions'])){ ++ if (isset($options['conditions'][0]) && strstr($options['conditions'][0], '?') && count($options['conditions']) > 1){ ++ //array('conditions' => array("name=?",$name)) ++ $pattern = array_shift($options['conditions']); ++ $options['bind'] = array_values($options['conditions']); ++ $options['conditions'] = $pattern; ++ }elseif (isset($options['conditions'][0])){ ++ //array('conditions' => array("user_name = :user_name", ':user_name' => 'hilario') ++ $pattern = array_shift($options['conditions']); ++ $options['conditions'] = str_replace(array_keys($options['conditions']), array_values($this->getSanitizedConditionsArray($options['conditions'])),$pattern); ++ }else{ ++ //array('conditions' => array('user_name'=>'Hilario')) ++ $options['conditions'] = join(' AND ',(array)$this->getAttributesQuoted($options['conditions'])); ++ } ++ } ++ ++ + empty($options['conditions']) ? null : $this->addConditions($sql, $options['conditions']); + ++ + if (!empty($options['group'])){ + $sql .= " GROUP BY {$options['group_field']} "; + $sql .= empty($options['having']) ? '' : " HAVING {$options['having']} "; +@@ -5013,6 +5032,11 @@ + $sql .= empty($options['order']) ? '' : " ORDER BY {$options['order']} "; + $this->_db->addLimitAndOffset($sql, $options); + $sql .= $use_workaround ? ')' : ''; ++ ++ if(!empty($options['bind']) && is_array($options['bind']) && strstr($sql,'?')){ ++ $sql = array_merge(array($sql),$options['bind']); ++ } ++ + return $sql; + } + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <agu...@us...> - 2008-03-20 15:43:15
|
Revision: 102 http://isocial.svn.sourceforge.net/isocial/?rev=102&view=rev Author: aguidrevitch Date: 2008-03-20 08:43:18 -0700 (Thu, 20 Mar 2008) Log Message: ----------- more fixes to akelos Modified Paths: -------------- akelos.diff Modified: akelos.diff =================================================================== --- akelos.diff 2008-03-19 19:56:04 UTC (rev 101) +++ akelos.diff 2008-03-20 15:43:18 UTC (rev 102) @@ -1,6 +1,6 @@ Index: lib/Ak.php =================================================================== ---- lib/Ak.php (revision 505) +--- lib/Ak.php (revision 509) +++ lib/Ak.php (working copy) @@ -183,6 +183,11 @@ return @$string[$try_whith_lang]; @@ -23,9 +23,34 @@ }else { $string = isset($framework_dictionary[$string]) ? $framework_dictionary[$string] : $string; } +Index: lib/AkActionController.php +=================================================================== +--- lib/AkActionController.php (revision 509) ++++ lib/AkActionController.php (working copy) +@@ -190,10 +190,6 @@ + } + + $this->performActionWithFilters($this->_action_name); +- +- if (!$this->_hasPerformed()){ +- $this->_enableLayoutOnRender ? $this->renderWithLayout() : $this->renderWithoutLayout(); +- } + + if(!empty($this->validate_output)){ + $this->_validateGeneratedXhtml(); +@@ -1926,6 +1922,9 @@ + { + if(method_exists(&$this, $action)){ + call_user_func_array(array(&$this, $action), @(array)$this->passed_args); ++ if (!$this->_hasPerformed()){ ++ $this->_enableLayoutOnRender ? $this->renderWithLayout() : $this->renderWithoutLayout(); ++ } + } + } + Index: lib/AkActiveRecord.php =================================================================== ---- lib/AkActiveRecord.php (revision 505) +--- lib/AkActiveRecord.php (revision 509) +++ lib/AkActiveRecord.php (working copy) @@ -4721,7 +4721,7 @@ $resulting_array = array(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <agu...@us...> - 2008-03-20 17:07:45
|
Revision: 104 http://isocial.svn.sourceforge.net/isocial/?rev=104&view=rev Author: aguidrevitch Date: 2008-03-20 10:07:51 -0700 (Thu, 20 Mar 2008) Log Message: ----------- module support for text helper added Modified Paths: -------------- akelos.diff Modified: akelos.diff =================================================================== --- akelos.diff 2008-03-20 15:57:54 UTC (rev 103) +++ akelos.diff 2008-03-20 17:07:51 UTC (rev 104) @@ -1,7 +1,7 @@ -Index: lib/Ak.php +Index: Ak.php =================================================================== ---- lib/Ak.php (revision 509) -+++ lib/Ak.php (working copy) +--- Ak.php (revision 509) ++++ Ak.php (working copy) @@ -183,6 +183,11 @@ return @$string[$try_whith_lang]; } @@ -23,10 +23,10 @@ }else { $string = isset($framework_dictionary[$string]) ? $framework_dictionary[$string] : $string; } -Index: lib/AkActionController.php +Index: AkActionController.php =================================================================== ---- lib/AkActionController.php (revision 509) -+++ lib/AkActionController.php (working copy) +--- AkActionController.php (revision 509) ++++ AkActionController.php (working copy) @@ -190,10 +190,6 @@ } @@ -48,19 +48,34 @@ } } -Index: lib/AkActiveRecord.php +Index: AkActionView/helpers/text_helper.php =================================================================== ---- lib/AkActiveRecord.php (revision 509) -+++ lib/AkActiveRecord.php (working copy) -@@ -4721,7 +4721,7 @@ - $resulting_array = array(); - if(!empty($source_array) && is_array($source_array)) { - foreach ($source_array as $source_item){ -- $resulting_array[$source_item->get($key_index)] = $source_item->get($value_index); -+ $resulting_array[$source_item->get($key_index, false)] = $source_item->get($value_index, false); - } - } - return $resulting_array; +--- AkActionView/helpers/text_helper.php (revision 509) ++++ AkActionView/helpers/text_helper.php (working copy) +@@ -518,8 +518,17 @@ + */ + function translate($string, $args = null, $locale_namespace = null) + { +- return Ak::t($string, $args, empty($locale_namespace) ? +- AkInflector::underscore($this->_controller->getControllerName()) : $locale_namespace); ++ ++ if ($locale_namespace) { ++ return Ak::t($string, $args, $locale_namespace); ++ } else { ++ $controller_namespace = ''; ++ if ($this->_controller->getModuleName()) { ++ $controller_namespace = AkInflector::underscore($this->_controller->getControllerName()) . DS; ++ } ++ $controller_namespace .= AkInflector::underscore($this->_controller->getControllerName()); ++ return Ak::t($string, $args, $controller_namespace); ++ } + } + + /** +Index: AkActiveRecord.php +=================================================================== +--- AkActiveRecord.php (revision 509) ++++ AkActiveRecord.php (working copy) @@ -5003,8 +5003,27 @@ $sql .= empty($options['joins']) ? '' : " {$options['joins']} "; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <agu...@us...> - 2008-03-20 17:09:21
|
Revision: 105 http://isocial.svn.sourceforge.net/isocial/?rev=105&view=rev Author: aguidrevitch Date: 2008-03-20 10:09:27 -0700 (Thu, 20 Mar 2008) Log Message: ----------- module support for text helper added (fixed) Modified Paths: -------------- akelos.diff Modified: akelos.diff =================================================================== --- akelos.diff 2008-03-20 17:07:51 UTC (rev 104) +++ akelos.diff 2008-03-20 17:09:27 UTC (rev 105) @@ -1,7 +1,7 @@ -Index: Ak.php +Index: lib/Ak.php =================================================================== ---- Ak.php (revision 509) -+++ Ak.php (working copy) +--- lib/Ak.php (revision 509) ++++ lib/Ak.php (working copy) @@ -183,6 +183,11 @@ return @$string[$try_whith_lang]; } @@ -23,10 +23,10 @@ }else { $string = isset($framework_dictionary[$string]) ? $framework_dictionary[$string] : $string; } -Index: AkActionController.php +Index: lib/AkActionController.php =================================================================== ---- AkActionController.php (revision 509) -+++ AkActionController.php (working copy) +--- lib/AkActionController.php (revision 509) ++++ lib/AkActionController.php (working copy) @@ -190,10 +190,6 @@ } @@ -48,10 +48,10 @@ } } -Index: AkActionView/helpers/text_helper.php +Index: lib/AkActionView/helpers/text_helper.php =================================================================== ---- AkActionView/helpers/text_helper.php (revision 509) -+++ AkActionView/helpers/text_helper.php (working copy) +--- lib/AkActionView/helpers/text_helper.php (revision 509) ++++ lib/AkActionView/helpers/text_helper.php (working copy) @@ -518,8 +518,17 @@ */ function translate($string, $args = null, $locale_namespace = null) @@ -72,10 +72,10 @@ } /** -Index: AkActiveRecord.php +Index: lib/AkActiveRecord.php =================================================================== ---- AkActiveRecord.php (revision 509) -+++ AkActiveRecord.php (working copy) +--- lib/AkActiveRecord.php (revision 509) ++++ lib/AkActiveRecord.php (working copy) @@ -5003,8 +5003,27 @@ $sql .= empty($options['joins']) ? '' : " {$options['joins']} "; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <agu...@us...> - 2008-03-20 17:14:05
|
Revision: 106 http://isocial.svn.sourceforge.net/isocial/?rev=106&view=rev Author: aguidrevitch Date: 2008-03-20 10:14:10 -0700 (Thu, 20 Mar 2008) Log Message: ----------- working module support for text helper Modified Paths: -------------- akelos.diff Modified: akelos.diff =================================================================== --- akelos.diff 2008-03-20 17:09:27 UTC (rev 105) +++ akelos.diff 2008-03-20 17:14:10 UTC (rev 106) @@ -52,7 +52,7 @@ =================================================================== --- lib/AkActionView/helpers/text_helper.php (revision 509) +++ lib/AkActionView/helpers/text_helper.php (working copy) -@@ -518,8 +518,17 @@ +@@ -518,8 +518,18 @@ */ function translate($string, $args = null, $locale_namespace = null) { @@ -64,7 +64,8 @@ + } else { + $controller_namespace = ''; + if ($this->_controller->getModuleName()) { -+ $controller_namespace = AkInflector::underscore($this->_controller->getControllerName()) . DS; ++ // a hack before akelos supplies something similar ++ $controller_namespace = AkInflector::underscore($this->_controller->getModuleName()) . DS; + } + $controller_namespace .= AkInflector::underscore($this->_controller->getControllerName()); + return Ak::t($string, $args, $controller_namespace); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <agu...@us...> - 2008-03-26 18:20:26
|
Revision: 113 http://isocial.svn.sourceforge.net/isocial/?rev=113&view=rev Author: aguidrevitch Date: 2008-03-26 11:20:31 -0700 (Wed, 26 Mar 2008) Log Message: ----------- module support improved Modified Paths: -------------- akelos.diff Modified: akelos.diff =================================================================== --- akelos.diff 2008-03-26 17:55:46 UTC (rev 112) +++ akelos.diff 2008-03-26 18:20:31 UTC (rev 113) @@ -1,6 +1,6 @@ Index: lib/Ak.php =================================================================== ---- lib/Ak.php (revision 509) +--- lib/Ak.php (revision 513) +++ lib/Ak.php (working copy) @@ -183,6 +183,11 @@ return @$string[$try_whith_lang]; @@ -25,20 +25,25 @@ } Index: lib/AkActionController.php =================================================================== ---- lib/AkActionController.php (revision 509) +--- lib/AkActionController.php (revision 513) +++ lib/AkActionController.php (working copy) -@@ -190,10 +190,6 @@ - } - - $this->performActionWithFilters($this->_action_name); -- -- if (!$this->_hasPerformed()){ -- $this->_enableLayoutOnRender ? $this->renderWithLayout() : $this->renderWithoutLayout(); -- } +@@ -756,7 +756,14 @@ + */ + function t($string, $array = null) + { +- return Ak::t($string, $array, AkInflector::underscore($this->getControllerName())); ++ $controller_namespace = ''; ++ if ($this->getModuleName()) { ++ // a hack before akelos supplies something similar ++ $controller_namespace = AkInflector::underscore($this->getModuleName()) . DS; ++ } ++ $controller_namespace .= AkInflector::underscore($this->getControllerName()); ++ ++ return Ak::t($string, $array, $controller_namespace); + } - if(!empty($this->validate_output)){ - $this->_validateGeneratedXhtml(); -@@ -1926,6 +1922,9 @@ + +@@ -1943,6 +1950,9 @@ { if(method_exists(&$this, $action)){ call_user_func_array(array(&$this, $action), @(array)$this->passed_args); @@ -50,7 +55,7 @@ Index: lib/AkActionView/helpers/text_helper.php =================================================================== ---- lib/AkActionView/helpers/text_helper.php (revision 509) +--- lib/AkActionView/helpers/text_helper.php (revision 513) +++ lib/AkActionView/helpers/text_helper.php (working copy) @@ -518,8 +518,18 @@ */ @@ -75,7 +80,7 @@ /** Index: lib/AkActiveRecord.php =================================================================== ---- lib/AkActiveRecord.php (revision 509) +--- lib/AkActiveRecord.php (revision 513) +++ lib/AkActiveRecord.php (working copy) @@ -5003,8 +5003,27 @@ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <agu...@us...> - 2008-04-05 18:07:28
|
Revision: 117 http://isocial.svn.sourceforge.net/isocial/?rev=117&view=rev Author: aguidrevitch Date: 2008-04-05 11:07:33 -0700 (Sat, 05 Apr 2008) Log Message: ----------- latest akelos patches Modified Paths: -------------- akelos.diff Modified: akelos.diff =================================================================== --- akelos.diff 2008-03-28 16:54:26 UTC (rev 116) +++ akelos.diff 2008-04-05 18:07:33 UTC (rev 117) @@ -1,6 +1,6 @@ Index: lib/Ak.php =================================================================== ---- lib/Ak.php (revision 513) +--- lib/Ak.php (revision 537) +++ lib/Ak.php (working copy) @@ -183,6 +183,11 @@ return @$string[$try_whith_lang]; @@ -25,7 +25,7 @@ } Index: lib/AkActionController.php =================================================================== ---- lib/AkActionController.php (revision 513) +--- lib/AkActionController.php (revision 537) +++ lib/AkActionController.php (working copy) @@ -756,7 +756,14 @@ */ @@ -55,7 +55,7 @@ Index: lib/AkActionView/helpers/text_helper.php =================================================================== ---- lib/AkActionView/helpers/text_helper.php (revision 513) +--- lib/AkActionView/helpers/text_helper.php (revision 537) +++ lib/AkActionView/helpers/text_helper.php (working copy) @@ -518,8 +518,18 @@ */ @@ -80,37 +80,17 @@ /** Index: lib/AkActiveRecord.php =================================================================== ---- lib/AkActiveRecord.php (revision 513) +--- lib/AkActiveRecord.php (revision 537) +++ lib/AkActiveRecord.php (working copy) -@@ -5003,8 +5003,27 @@ +@@ -5008,6 +5008,7 @@ $sql .= empty($options['joins']) ? '' : " {$options['joins']} "; -+ //$this->santizeSql(conditions); -+ if(!empty($options['conditions']) && is_array($options['conditions'])){ -+ if (isset($options['conditions'][0]) && strstr($options['conditions'][0], '?') && count($options['conditions']) > 1){ -+ //array('conditions' => array("name=?",$name)) -+ $pattern = array_shift($options['conditions']); -+ $options['bind'] = array_values($options['conditions']); -+ $options['conditions'] = $pattern; -+ }elseif (isset($options['conditions'][0])){ -+ //array('conditions' => array("user_name = :user_name", ':user_name' => 'hilario') -+ $pattern = array_shift($options['conditions']); -+ $options['conditions'] = str_replace(array_keys($options['conditions']), array_values($this->getSanitizedConditionsArray($options['conditions'])),$pattern); -+ }else{ -+ //array('conditions' => array('user_name'=>'Hilario')) -+ $options['conditions'] = join(' AND ',(array)$this->getAttributesQuoted($options['conditions'])); -+ } -+ } -+ -+ ++ $this->_sanitizeConditionsVariables($options); empty($options['conditions']) ? null : $this->addConditions($sql, $options['conditions']); -+ if (!empty($options['group'])){ - $sql .= " GROUP BY {$options['group_field']} "; - $sql .= empty($options['having']) ? '' : " HAVING {$options['having']} "; -@@ -5013,6 +5032,11 @@ +@@ -5018,6 +5019,11 @@ $sql .= empty($options['order']) ? '' : " ORDER BY {$options['order']} "; $this->_db->addLimitAndOffset($sql, $options); $sql .= $use_workaround ? ')' : ''; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <agu...@us...> - 2008-04-13 12:18:24
|
Revision: 119 http://isocial.svn.sourceforge.net/isocial/?rev=119&view=rev Author: aguidrevitch Date: 2008-04-13 05:18:29 -0700 (Sun, 13 Apr 2008) Log Message: ----------- patch synced with latest akelos Modified Paths: -------------- akelos.diff Modified: akelos.diff =================================================================== --- akelos.diff 2008-04-11 16:21:23 UTC (rev 118) +++ akelos.diff 2008-04-13 12:18:29 UTC (rev 119) @@ -1,6 +1,6 @@ Index: lib/Ak.php =================================================================== ---- lib/Ak.php (revision 537) +--- lib/Ak.php (revision 558) +++ lib/Ak.php (working copy) @@ -183,6 +183,11 @@ return @$string[$try_whith_lang]; @@ -25,9 +25,9 @@ } Index: lib/AkActionController.php =================================================================== ---- lib/AkActionController.php (revision 537) +--- lib/AkActionController.php (revision 558) +++ lib/AkActionController.php (working copy) -@@ -756,7 +756,14 @@ +@@ -750,7 +750,14 @@ */ function t($string, $array = null) { @@ -43,7 +43,7 @@ } -@@ -1943,6 +1950,9 @@ +@@ -1946,6 +1953,9 @@ { if(method_exists(&$this, $action)){ call_user_func_array(array(&$this, $action), @(array)$this->passed_args); @@ -55,7 +55,7 @@ Index: lib/AkActionView/helpers/text_helper.php =================================================================== ---- lib/AkActionView/helpers/text_helper.php (revision 537) +--- lib/AkActionView/helpers/text_helper.php (revision 558) +++ lib/AkActionView/helpers/text_helper.php (working copy) @@ -518,8 +518,18 @@ */ @@ -80,9 +80,9 @@ /** Index: lib/AkActiveRecord.php =================================================================== ---- lib/AkActiveRecord.php (revision 537) +--- lib/AkActiveRecord.php (revision 558) +++ lib/AkActiveRecord.php (working copy) -@@ -5008,6 +5008,7 @@ +@@ -5012,6 +5012,7 @@ $sql .= empty($options['joins']) ? '' : " {$options['joins']} "; @@ -90,7 +90,7 @@ empty($options['conditions']) ? null : $this->addConditions($sql, $options['conditions']); if (!empty($options['group'])){ -@@ -5018,6 +5019,11 @@ +@@ -5022,6 +5023,11 @@ $sql .= empty($options['order']) ? '' : " ORDER BY {$options['order']} "; $this->_db->addLimitAndOffset($sql, $options); $sql .= $use_workaround ? ')' : ''; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <agu...@us...> - 2008-05-06 16:41:49
|
Revision: 169 http://isocial.svn.sourceforge.net/isocial/?rev=169&view=rev Author: aguidrevitch Date: 2008-05-06 09:40:51 -0700 (Tue, 06 May 2008) Log Message: ----------- akelos patch synced Modified Paths: -------------- akelos.diff Modified: akelos.diff =================================================================== --- akelos.diff 2008-05-06 16:27:44 UTC (rev 168) +++ akelos.diff 2008-05-06 16:40:51 UTC (rev 169) @@ -1,6 +1,6 @@ Index: lib/Ak.php =================================================================== ---- lib/Ak.php (revision 558) +--- lib/Ak.php (revision 578) +++ lib/Ak.php (working copy) @@ -183,6 +183,11 @@ return @$string[$try_whith_lang]; @@ -25,9 +25,9 @@ } Index: lib/AkActionController.php =================================================================== ---- lib/AkActionController.php (revision 558) +--- lib/AkActionController.php (revision 578) +++ lib/AkActionController.php (working copy) -@@ -750,7 +750,14 @@ +@@ -749,7 +749,14 @@ */ function t($string, $array = null) { @@ -43,7 +43,7 @@ } -@@ -1946,6 +1953,9 @@ +@@ -1949,6 +1956,9 @@ { if(method_exists(&$this, $action)){ call_user_func_array(array(&$this, $action), @(array)$this->passed_args); @@ -55,7 +55,7 @@ Index: lib/AkActionView/helpers/text_helper.php =================================================================== ---- lib/AkActionView/helpers/text_helper.php (revision 558) +--- lib/AkActionView/helpers/text_helper.php (revision 578) +++ lib/AkActionView/helpers/text_helper.php (working copy) @@ -518,8 +518,18 @@ */ @@ -80,7 +80,7 @@ /** Index: lib/AkActiveRecord.php =================================================================== ---- lib/AkActiveRecord.php (revision 558) +--- lib/AkActiveRecord.php (revision 578) +++ lib/AkActiveRecord.php (working copy) @@ -5012,6 +5012,7 @@ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <agu...@us...> - 2008-05-21 09:03:03
|
Revision: 214 http://isocial.svn.sourceforge.net/isocial/?rev=214&view=rev Author: aguidrevitch Date: 2008-05-21 02:03:08 -0700 (Wed, 21 May 2008) Log Message: ----------- some extra akelos fixes Modified Paths: -------------- akelos.diff Modified: akelos.diff =================================================================== --- akelos.diff 2008-05-20 17:38:44 UTC (rev 213) +++ akelos.diff 2008-05-21 09:03:08 UTC (rev 214) @@ -1,6 +1,6 @@ Index: lib/Ak.php =================================================================== ---- lib/Ak.php (revision 578) +--- lib/Ak.php (revision 581) +++ lib/Ak.php (working copy) @@ -183,6 +183,11 @@ return @$string[$try_whith_lang]; @@ -25,9 +25,9 @@ } Index: lib/AkActionController.php =================================================================== ---- lib/AkActionController.php (revision 578) +--- lib/AkActionController.php (revision 581) +++ lib/AkActionController.php (working copy) -@@ -749,7 +749,14 @@ +@@ -750,7 +750,14 @@ */ function t($string, $array = null) { @@ -43,7 +43,7 @@ } -@@ -1949,6 +1956,9 @@ +@@ -1950,6 +1957,9 @@ { if(method_exists(&$this, $action)){ call_user_func_array(array(&$this, $action), @(array)$this->passed_args); @@ -53,9 +53,32 @@ } } +Index: lib/AkInstaller.php +=================================================================== +--- lib/AkInstaller.php (revision 581) ++++ lib/AkInstaller.php (working copy) +@@ -356,11 +356,13 @@ + + function dropTable($table_name, $options = array()) + { +- $result = $this->tableExists($table_name) ? $this->db->execute('DROP TABLE '.$table_name) : true; +- if($result){ +- unset($this->available_tables[array_search($table_name, $this->available_tables)]); +- if(!empty($options['sequence'])){ +- $this->dropSequence($table_name); ++ if($this->tableExists($table_name)){ ++ $result = $this->db->execute('DROP TABLE '.$table_name); ++ if ($result) { ++ unset($this->available_tables[array_search($table_name, $this->available_tables)]); ++ if(!empty($options['sequence'])){ ++ $this->dropSequence($table_name); ++ } + } + } + } Index: lib/AkActionView/helpers/text_helper.php =================================================================== ---- lib/AkActionView/helpers/text_helper.php (revision 578) +--- lib/AkActionView/helpers/text_helper.php (revision 581) +++ lib/AkActionView/helpers/text_helper.php (working copy) @@ -518,8 +518,18 @@ */ @@ -80,7 +103,7 @@ /** Index: lib/AkActiveRecord.php =================================================================== ---- lib/AkActiveRecord.php (revision 578) +--- lib/AkActiveRecord.php (revision 581) +++ lib/AkActiveRecord.php (working copy) @@ -5012,6 +5012,7 @@ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <agu...@us...> - 2008-07-13 17:09:05
|
Revision: 284 http://isocial.svn.sourceforge.net/isocial/?rev=284&view=rev Author: aguidrevitch Date: 2008-07-13 10:09:09 -0700 (Sun, 13 Jul 2008) Log Message: ----------- akelos patch synced Modified Paths: -------------- akelos.diff Modified: akelos.diff =================================================================== --- akelos.diff 2008-07-09 15:55:12 UTC (rev 283) +++ akelos.diff 2008-07-13 17:09:09 UTC (rev 284) @@ -1,6 +1,6 @@ Index: lib/Ak.php =================================================================== ---- lib/Ak.php (revision 581) +--- lib/Ak.php (revision 834) +++ lib/Ak.php (working copy) @@ -183,6 +183,11 @@ return @$string[$try_whith_lang]; @@ -23,11 +23,19 @@ }else { $string = isset($framework_dictionary[$string]) ? $framework_dictionary[$string] : $string; } +@@ -351,7 +358,6 @@ + if(!is_dir(dirname($options['base_path'].DS.$file_name))){ + Ak::make_dir(dirname($options['base_path'].DS.$file_name), $options); + } +- + if(!$result = file_put_contents($options['base_path'].DS.$file_name, $content)){ + if(!empty($content)){ + Ak::trace("Please change file/dir permissions or enable FTP file handling by". Index: lib/AkActionController.php =================================================================== ---- lib/AkActionController.php (revision 581) +--- lib/AkActionController.php (revision 834) +++ lib/AkActionController.php (working copy) -@@ -750,7 +750,14 @@ +@@ -749,7 +749,14 @@ */ function t($string, $array = null) { @@ -43,7 +51,7 @@ } -@@ -1950,6 +1957,9 @@ +@@ -1949,6 +1956,9 @@ { if(method_exists(&$this, $action)){ call_user_func_array(array(&$this, $action), @(array)$this->passed_args); @@ -55,9 +63,9 @@ Index: lib/AkInstaller.php =================================================================== ---- lib/AkInstaller.php (revision 581) +--- lib/AkInstaller.php (revision 834) +++ lib/AkInstaller.php (working copy) -@@ -356,11 +356,13 @@ +@@ -358,11 +358,13 @@ function dropTable($table_name, $options = array()) { @@ -78,7 +86,7 @@ } Index: lib/AkActionView/helpers/text_helper.php =================================================================== ---- lib/AkActionView/helpers/text_helper.php (revision 581) +--- lib/AkActionView/helpers/text_helper.php (revision 834) +++ lib/AkActionView/helpers/text_helper.php (working copy) @@ -518,8 +518,18 @@ */ @@ -103,9 +111,9 @@ /** Index: lib/AkActiveRecord.php =================================================================== ---- lib/AkActiveRecord.php (revision 581) +--- lib/AkActiveRecord.php (revision 834) +++ lib/AkActiveRecord.php (working copy) -@@ -5012,6 +5012,7 @@ +@@ -5013,6 +5013,7 @@ $sql .= empty($options['joins']) ? '' : " {$options['joins']} "; @@ -113,7 +121,7 @@ empty($options['conditions']) ? null : $this->addConditions($sql, $options['conditions']); if (!empty($options['group'])){ -@@ -5022,6 +5023,11 @@ +@@ -5023,6 +5024,11 @@ $sql .= empty($options['order']) ? '' : " ORDER BY {$options['order']} "; $this->_db->addLimitAndOffset($sql, $options); $sql .= $use_workaround ? ')' : ''; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |