Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue 4116 and also merge both versions of home.ctp
- Loading branch information
euromark
committed
Sep 30, 2013
1 parent
06a89f1
commit 1c6a379
Showing
2 changed files
with
29 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,23 +3,15 @@ | |
* | ||
* PHP 5 | ||
* | ||
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
ADmad
Member
|
||
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | ||
* | ||
* Licensed under The MIT License | ||
* For full copyright and license information, please see the LICENSE.txt | ||
* Redistributions of files must retain the above copyright notice. | ||
* | ||
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | ||
* @link http://cakephp.org CakePHP(tm) Project | ||
* @package app.View.Pages | ||
* @since CakePHP(tm) v 0.10.0.1076 | ||
* @license http://www.opensource.org/licenses/mit-license.php MIT License | ||
*/ | ||
|
||
if (!Configure::read('debug')): | ||
throw new NotFoundException(); | ||
endif; | ||
|
||
App::uses('Debugger', 'Utility'); | ||
?> | ||
<h2><?php echo __d('cake_dev', 'Release Notes for CakePHP %s.', Configure::version()); ?></h2> | ||
|
@@ -31,11 +23,17 @@ if (Configure::read('debug') > 0): | |
Debugger::checkSecurityKeys(); | ||
endif; | ||
?> | ||
<?php | ||
if (file_exists(WWW_ROOT . 'css' . DS . 'cake.generic.css')): | ||
?> | ||
<p id="url-rewriting-warning" style="background-color:#e32; color:#fff;"> | ||
<?php echo __d('cake_dev', 'URL rewriting is not properly configured on your server.'); ?> | ||
1) <a target="_blank" href="http://book.cakephp.org/2.0/en/installation/url-rewriting.html" style="color:#fff;">Help me configure it</a> | ||
2) <a target="_blank" href="http://book.cakephp.org/2.0/en/development/configuration.html#cakephp-core-configuration" style="color:#fff;">I don't / can't use URL rewriting</a> | ||
</p> | ||
<?php | ||
endif; | ||
?> | ||
<p> | ||
<?php | ||
if (version_compare(PHP_VERSION, '5.2.8', '>=')): | ||
|
@@ -67,11 +65,11 @@ endif; | |
$settings = Cache::settings(); | ||
if (!empty($settings)): | ||
echo '<span class="notice success">'; | ||
echo __d('cake_dev', 'The %s is being used for core caching. To change the config edit APP/Config/core.php ', '<em>' . $settings['engine'] . 'Engine</em>'); | ||
echo __d('cake_dev', 'The %s is being used for core caching. To change the config edit %s', '<em>'. $settings['engine'] . 'Engine</em>', 'APP/Config/core.php'); | ||
echo '</span>'; | ||
else: | ||
echo '<span class="notice">'; | ||
echo __d('cake_dev', 'Your cache is NOT working. Please check the settings in APP/Config/core.php'); | ||
echo __d('cake_dev', 'Your cache is NOT working. Please check the settings in %s', 'APP/Config/core.php'); | ||
echo '</span>'; | ||
endif; | ||
?> | ||
|
@@ -88,7 +86,7 @@ endif; | |
echo '<span class="notice">'; | ||
echo __d('cake_dev', 'Your database configuration file is NOT present.'); | ||
echo '<br/>'; | ||
echo __d('cake_dev', 'Rename APP/Config/database.php.default to APP/Config/database.php'); | ||
echo __d('cake_dev', 'Rename %s to %s', 'APP/Config/database.php.default', 'APP/Config/database.php'); | ||
echo '</span>'; | ||
endif; | ||
?> | ||
|
@@ -155,9 +153,10 @@ if (isset($filePresent)): | |
<h3><?php echo __d('cake_dev', 'Editing this Page'); ?></h3> | ||
<p> | ||
<?php | ||
echo __d('cake_dev', 'To change the content of this page, edit: APP/View/Pages/home.ctp.<br /> | ||
To change its layout, edit: APP/View/Layouts/default.ctp.<br /> | ||
You can also add some CSS styles for your pages at: APP/webroot/css.'); | ||
echo __d('cake_dev', 'To change the content of this page, edit: %s.<br /> | ||
To change its layout, edit: %s.<br /> | ||
You can also add some CSS styles for your pages at: %s.', | ||
'APP/View/Pages/home.ctp', 'APP/View/Layouts/default.ctp', 'APP/webroot/css'); | ||
?> | ||
</p> | ||
|
||
|
@@ -206,11 +205,11 @@ You can also add some CSS styles for your pages at: APP/webroot/css.'); | |
<ul> | ||
<li><a href="http://cakefoundation.org/"><?php echo __d('cake_dev', 'Cake Software Foundation'); ?> </a> | ||
<ul><li><?php echo __d('cake_dev', 'Promoting development related to CakePHP'); ?></li></ul></li> | ||
<li><a href="http://www.cakephp.org"><?php echo __d('cake_dev', 'CakePHP'); ?> </a> | ||
<li><a href="http://www.cakephp.org">CakePHP</a> | ||
<ul><li><?php echo __d('cake_dev', 'The Rapid Development Framework'); ?></li></ul></li> | ||
<li><a href="http://book.cakephp.org"><?php echo __d('cake_dev', 'CakePHP Documentation'); ?> </a> | ||
<ul><li><?php echo __d('cake_dev', 'Your Rapid Development Cookbook'); ?></li></ul></li> | ||
<li><a href="http://api.cakephp.org/"><?php echo __d('cake_dev', 'CakePHP API'); ?> </a> | ||
<li><a href="http://api.cakephp.org"><?php echo __d('cake_dev', 'CakePHP API'); ?> </a> | ||
<ul><li><?php echo __d('cake_dev', 'Quick Reference'); ?></li></ul></li> | ||
<li><a href="http://bakery.cakephp.org"><?php echo __d('cake_dev', 'The Bakery'); ?> </a> | ||
<ul><li><?php echo __d('cake_dev', 'Everything CakePHP'); ?></li></ul></li> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Did I miss something? Since when do we strip out these sections of the file DocBlock?
Just checked some files in the upstream/master, all still have it... 😕