mirror of
https://github.com/e107inc/e107.git
synced 2025-04-20 20:51:53 +02:00
Minor fixes
This commit is contained in:
parent
6837ea5154
commit
e74000fb1c
@ -739,6 +739,9 @@ if ($e107_popup != 1)
|
||||
* @param bool $output false suppress any function output
|
||||
* @return integer|bool db::db_Query result
|
||||
*/
|
||||
// TODO - This function often needs to be available BEFORE header.php is loaded.
|
||||
// It has been copied to message_handler.php as autoMessage();
|
||||
|
||||
function admin_update($update, $type = 'update', $success = false, $failed = false, $output = true)
|
||||
{
|
||||
require_once (e_HANDLER."message_handler.php");
|
||||
|
@ -1140,7 +1140,7 @@ class admin_newspost
|
||||
|
||||
// $newsposts = $e107->sql->db_Count('news');
|
||||
|
||||
if (!vartrue($_GET['srch']))
|
||||
if ($newsposts > $amount)
|
||||
{
|
||||
// $parms = $newsposts.",".$amount.",".$this->getFrom().",".e_SELF."?".$this->getAction().'.'.($this->getSubAction() ? $this->getSubAction() : 0).'.'.$this->_sort_order.".[FROM]";
|
||||
$parms = $newsposts.",".$amount.",".$this->getFrom().",".e_SELF."?action=".$this->getAction().'&sub='.($this->getSubAction() ? $this->getSubAction() : 0).'&id='.$this->_sort_order.'&filter='.intval($_GET['filter']).'&srch='.$_GET['srch']."&frm=[FROM]";
|
||||
|
Loading…
x
Reference in New Issue
Block a user