Update Kohana to 3.1.3.1
This commit is contained in:
@@ -29,7 +29,7 @@ class Bench_DateSpan extends Codebench {
|
||||
public static function bench_span_original($remote, $local = NULL, $output = 'years,months,weeks,days,hours,minutes,seconds')
|
||||
{
|
||||
// Array with the output formats
|
||||
$output = preg_split('/[^a-z]+/', strtolower((string) $output));
|
||||
$output = preg_split('/[^a-z]+/', strtolower( (string) $output));
|
||||
|
||||
// Invalid output
|
||||
if (empty($output))
|
||||
@@ -116,7 +116,7 @@ class Bench_DateSpan extends Codebench {
|
||||
public static function bench_span_use_array($remote, $local = NULL, $output = 'years,months,weeks,days,hours,minutes,seconds')
|
||||
{
|
||||
// Array with the output formats
|
||||
$output = preg_split('/[^a-z]+/', strtolower((string) $output));
|
||||
$output = preg_split('/[^a-z]+/', strtolower( (string) $output));
|
||||
|
||||
// Invalid output
|
||||
if (empty($output))
|
||||
|
@@ -17,7 +17,9 @@ class Controller_Codebench extends Kohana_Controller_Template {
|
||||
{
|
||||
// Convert submitted class name to URI segment
|
||||
if (isset($_POST['class']))
|
||||
{
|
||||
$this->request->redirect('codebench/'.trim($_POST['class']));
|
||||
}
|
||||
|
||||
// Pass the class name on to the view
|
||||
$this->template->class = (string) $class;
|
||||
|
0
includes/kohana/modules/codebench/media/guide/codebench/codebench_screenshot1.png
Executable file → Normal file
0
includes/kohana/modules/codebench/media/guide/codebench/codebench_screenshot1.png
Executable file → Normal file
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
0
includes/kohana/modules/codebench/media/guide/codebench/codebench_screenshot2.png
Executable file → Normal file
0
includes/kohana/modules/codebench/media/guide/codebench/codebench_screenshot2.png
Executable file → Normal file
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* Codebench — A benchmarking module.
|
||||
*
|
||||
* @package Kohana
|
||||
* @package Kohana/Codebench
|
||||
* @author Kohana Team
|
||||
* @copyright (c) 2009 Kohana Team
|
||||
* @license http://kohanaphp.com/license.html
|
||||
@@ -14,7 +14,9 @@
|
||||
<head>
|
||||
|
||||
<meta charset="utf-8" />
|
||||
<title><?php if ($class !== '') echo $class, ' · ' ?>Codebench</title>
|
||||
<title><?php if ($class !== ''): ?>
|
||||
<?php echo $class, ' · ' ?>
|
||||
<?php endif; ?>Codebench</title>
|
||||
|
||||
<style>
|
||||
/* General styles*/
|
||||
@@ -255,4 +257,4 @@
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user