Skip to content

Commit

Permalink
Checking mbstring in default home page
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbasso committed Sep 28, 2012
1 parent e7af1be commit 5564081
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions App/View/Pages/home.ctp
Expand Up @@ -53,6 +53,19 @@ endif;
endif;
?>
</p>
<p>
<?php
if (extension_loaded('mbstring')):
echo '<span class="notice success">';
echo __d('cake_dev', 'Your version of PHP has mbstring extension loaded.');
echo '</span>';
else:
echo '<span class="notice">';
echo __d('cake_dev', 'Your version of PHP do NOT have mbstring extension loaded.');
echo '</span>';
endif;
?>
</p>
<p>
<?php
if (is_writable(TMP)):
Expand Down
13 changes: 13 additions & 0 deletions lib/Cake/Console/Templates/skel/View/Pages/home.ctp
Expand Up @@ -55,6 +55,19 @@ endif;
endif;
?>
</p>
<p>
<?php
if (extension_loaded('mbstring')):
echo '<span class="notice success">';
echo __d('cake_dev', 'Your version of PHP has mbstring extension loaded.');
echo '</span>';
else:
echo '<span class="notice">';
echo __d('cake_dev', 'Your version of PHP do NOT have mbstring extension loaded.');
echo '</span>';
endif;
?>
</p>
<p>
<?php
if (is_writable(TMP)):
Expand Down

0 comments on commit 5564081

Please sign in to comment.