Skip to content

Commit

Permalink
pasado el corrector ortografico del komodo edit a /core/libs/upload/u…
Browse files Browse the repository at this point in the history
…pload.php y /core/libs/session/session.php
  • Loading branch information
demonio authored and joanhey committed Mar 2, 2012
1 parent 125154f commit bce7ea0
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 29 deletions.
42 changes: 21 additions & 21 deletions core/libs/session/session.php
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
<?php
/**
* KumbiaPHP web & app Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://wiki.kumbiaphp.com/Licencia
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@kumbiaphp.com so we can send you a copy immediately.
*
* Modelo orientado a objetos para el acceso a datos en Sesiones
*
* @category Kumbia
* @package Session
* @copyright Copyright (c) 2005-2012 Kumbia Team (http://www.kumbiaphp.com)
* @license http://wiki.kumbiaphp.com/Licencia New BSD License
/**
* KumbiaPHP web & app Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://wiki.kumbiaphp.com/Licencia
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@kumbiaphp.com so we can send you a copy immediately.
*
* Modelo orientado a objetos para el acceso a datos en Sesiones
*
* @category Kumbia
* @package Session
* @copyright Copyright (c) 2005-2012 Kumbia Team (http://www.kumbiaphp.com)
* @license http://wiki.kumbiaphp.com/Licencia New BSD License
*/
class Session
{
Expand All @@ -33,7 +33,7 @@ public static function set($index, $value, $namespace='default')
$_SESSION['KUMBIA_SESSION'][APP_PATH][$namespace][$index] = $value;
}
/**
* Obtener el valor para un indice de la sesion
* Obtener el valor para un indice de la sesión
*
* @param string $index
* @param string $namespace
Expand All @@ -58,7 +58,7 @@ public static function delete($index, $namespace='default')
unset($_SESSION['KUMBIA_SESSION'][APP_PATH][$namespace][$index]);
}
/**
* Verifica si el indice esta cargado en sesion
* Verifica si el indice esta cargado en sesión
*
* @param string $index
* @param string $namespace
Expand Down
16 changes: 8 additions & 8 deletions core/libs/upload/upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
abstract class Upload
{
/**
* Nombre de archivo subido por metodo POST
* Nombre de archivo subido por método POST
*
* @var string
*/
Expand All @@ -36,14 +36,14 @@ abstract class Upload
protected $_allowScripts = FALSE;

/**
* Tamaño minimo del archivo
* Tamaño mínimo del archivo
*
* @var string
*/
protected $_minSize = NULL;

/**
* Tamaño maximo del archivo
* Tamaño máximo del archivo
*
* @var string
*/
Expand All @@ -57,7 +57,7 @@ abstract class Upload
protected $_types = NULL;

/**
* Extension de archivo permitida
* Extensión de archivo permitida
*
* @var array
*/
Expand All @@ -73,7 +73,7 @@ abstract class Upload
/**
* Constructor
*
* @param string $name nombre de archivo por metodo POST
* @param string $name nombre de archivo por método POST
*/
public function __construct($name)
{
Expand Down Expand Up @@ -152,7 +152,7 @@ protected function _beforeSave($name)
{}

/**
* Acciones despues de guardar
* Acciones después de guardar
*
* @param string $name nombre con el que se guardo el archivo
*/
Expand Down Expand Up @@ -244,7 +244,7 @@ protected function _validates()
return FALSE;
}

// Valida extension del archivo
// Valida extensión del archivo
if($this->_extensions !== NULL && !preg_match('/\.(' . implode('|', $this->_extensions) . ')$/i', $_FILES[$this->_name]['name'])) {
Flash::error('Error: la extensión del archivo no es válida');
return FALSE;
Expand Down Expand Up @@ -276,7 +276,7 @@ protected function _validatesTypes()
}

/**
* Devuelve la extension
* Devuelve la extensión
*
* @return string
*/
Expand Down

0 comments on commit bce7ea0

Please sign in to comment.