From 319b4b29db9c1e467b34f75bb03d1d908d17afbc Mon Sep 17 00:00:00 2001 From: Deon George Date: Fri, 29 Nov 2013 11:43:16 +1100 Subject: [PATCH] Minor cosmetic updates, added label/bool for other themes --- classes/lnApp/Form.php | 4 ++-- classes/lnApp/SystemMessage.php | 11 +++++------ classes/lnApp/Valid.php | 22 +++++++++++----------- config/userguide.php | 2 +- views/theme/focusbusiness/label/bool.php | 1 + 5 files changed, 20 insertions(+), 20 deletions(-) create mode 100644 views/theme/focusbusiness/label/bool.php diff --git a/classes/lnApp/Form.php b/classes/lnApp/Form.php index e7a0bae..1ca78f9 100644 --- a/classes/lnApp/Form.php +++ b/classes/lnApp/Form.php @@ -139,8 +139,8 @@ parserRules: { tr: {}, td: { check_attributes: { - colspan: "numbers", - rowspan: "numbers", + colspan: "numbers", + rowspan: "numbers", } } } diff --git a/classes/lnApp/SystemMessage.php b/classes/lnApp/SystemMessage.php index 071ac7b..b8bec9c 100644 --- a/classes/lnApp/SystemMessage.php +++ b/classes/lnApp/SystemMessage.php @@ -74,16 +74,15 @@ abstract class lnApp_SystemMessage extends HTMLRender { return $output; } - /** - * Render all of these items - */ - public function render_all() { + /** + * Render all of these items + */ + public function render_all() { // Reload our message from the session if ($msgs = Session::instance()->get_once('sessionmsgs')) static::$_data = $msgs; return parent::render_all(); - } - + } } ?> diff --git a/classes/lnApp/Valid.php b/classes/lnApp/Valid.php index 6f4d13c..f3206c2 100644 --- a/classes/lnApp/Valid.php +++ b/classes/lnApp/Valid.php @@ -10,16 +10,16 @@ * @license http://dev.leenooks.net/license.html */ abstract class lnApp_Valid extends Kohana_Valid { - /** - * Checks that a value is not equal to another list of values - * - * @param string $value value - * @param array $list List of Values that shouldnt equal - * @return boolean - */ - public static function not_equal($value, array $list) - { - return ! in_array($value,$list); - } + + /** + * Checks that a value is not equal to another list of values + * + * @param string $value value + * @param array $list List of Values that shouldnt equal + * @return boolean + */ + public static function not_equal($value, array $list) { + return ! in_array($value,$list); + } } ?> diff --git a/config/userguide.php b/config/userguide.php index 4dc0f18..f507a3f 100644 --- a/config/userguide.php +++ b/config/userguide.php @@ -28,7 +28,7 @@ return array 'kohana' => array('enabled'=>FALSE), 'auth' => array('enabled'=>FALSE), 'cache' => array('enabled'=>FALSE), - 'database' => array('enabled'=>TRUE), + 'database' => array('enabled'=>FALSE), 'minion' => array('enabled'=>FALSE), 'orm' => array('enabled'=>FALSE), 'pagination' => array('enabled'=>FALSE), diff --git a/views/theme/focusbusiness/label/bool.php b/views/theme/focusbusiness/label/bool.php new file mode 100644 index 0000000..2ed34cc --- /dev/null +++ b/views/theme/focusbusiness/label/bool.php @@ -0,0 +1 @@ +