Version 4.7.8
This commit is contained in:
1 parent
7b7404e741
commit
fd22d99e69
688 files changed
+19814
-10890
No files matched your search
@@ -326,7 +326,7 @@ abstract class _Content extends \IPS\Patterns\ActiveRecord
|
||||
if( $this->isAnonymous() )
|
||||
{
|
||||
$guest = new \IPS\Member;
|
||||
$guest->name = \IPS\Member::loggedIn()->language()->addToStack( "post_anonymously_placename" );
|
||||
$guest->name = \IPS\Member::loggedIn()->language()->get( "post_anonymously_placename" );
|
||||
return $guest;
|
||||
}
|
||||
elseif ( $this->mapped('author') or !isset( static::$databaseColumnMap['author_name'] ) or !$this->mapped('author_name') )
|
||||
@@ -3158,10 +3158,11 @@ abstract class _Content extends \IPS\Patterns\ActiveRecord
|
||||
/**
|
||||
* Get edit history
|
||||
*
|
||||
* @param bool $staff Set true for moderators who have permission to view the full log which will show edits not made by the author and private edits
|
||||
* @param bool $staff Set true for moderators who have permission to view the full log which will show edits not made by the author and private edits
|
||||
* @param int|NULL $limit
|
||||
* @return \IPS\Db\Select
|
||||
*/
|
||||
public function editHistory( $staff=FALSE )
|
||||
public function editHistory( $staff=FALSE, $limit=NULL )
|
||||
{
|
||||
$idColumn = static::$databaseColumnId;
|
||||
$where = array( array( 'class=? AND comment_id=?', \get_called_class(), $this->$idColumn ) );
|
||||
@@ -3169,7 +3170,8 @@ abstract class _Content extends \IPS\Patterns\ActiveRecord
|
||||
{
|
||||
$where[] = array( '`member`=? AND public=1', $this->author()->member_id );
|
||||
}
|
||||
return \IPS\Db::i()->select( '*', 'core_edit_history', $where, 'time DESC' );
|
||||
|
||||
return \IPS\Db::i()->select( '*', 'core_edit_history', $where, 'time DESC', $limit );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user