show a proper error message in help when it can't get the data from apps.owncloud.com

This commit is contained in:
Robin Appelman 2011-07-17 16:36:15 +02:00
parent f4121339af
commit 4c0c5b64c2
1 changed files with 22 additions and 18 deletions

View File

@ -1,7 +1,10 @@
<h1><?php echo $l->t( 'Questions and Answers' ); ?></h1>
<table cellspacing="0" width="100%">
<?php if(is_null($_["kbe"])):?>
Can't connect to Q&amp;A database
<?php else:?>
<table cellspacing="0" width="100%">
<tbody>
<?php foreach($_["kbe"] as $kb): ?>
<tr>
@ -12,12 +15,13 @@
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php
</table>
<?php
$url=OC_HELPER::linkTo( "help", "index.php" ).'?page=';
$pageNavi=OC_UTIL::getPageNavi($_['pagecount'],$_['page'],$url);
$pageNavi->printPage();
?>
<a target="_blank" class="prettybutton" href="http://apps.owncloud.com/knowledgebase/editquestion.php?action=new"><?php echo $l->t( 'ASK A QUESTION' ); ?></a>
?>
<a target="_blank" class="prettybutton" href="http://apps.owncloud.com/knowledgebase/editquestion.php?action=new"><?php echo $l->t( 'ASK A QUESTION' ); ?></a>
<?php endif;?>