* Adjust doc orderby.
This commit is contained in:
@@ -143,7 +143,7 @@ class doc extends control
|
||||
if($module) $title = $module->name;
|
||||
if($libID) $title = $this->libs[$libID];
|
||||
if(in_array($browseType, array_keys($this->lang->doc->fastMenuList))) $title = $this->lang->doc->fastMenuList[$browseType];
|
||||
if($param) $title = $this->doc->buildBreadTitle($libID, $param, $title);
|
||||
if($param != 0) $title = $this->doc->buildBreadTitle($libID, $param, $title);
|
||||
if($browseType == 'fastsearch')
|
||||
{
|
||||
if($this->post->searchDoc) $this->session->set('searchDoc', $this->post->searchDoc);
|
||||
|
||||
@@ -1644,7 +1644,7 @@ class treeModel extends model
|
||||
*/
|
||||
public function getDocStructure()
|
||||
{
|
||||
$stmt = $this->dbh->query($this->dao->select('*')->from(TABLE_MODULE)->where('type')->eq('doc')->andWhere('deleted')->eq(0)->get());
|
||||
$stmt = $this->dbh->query($this->dao->select('*')->from(TABLE_MODULE)->where('type')->eq('doc')->andWhere('deleted')->eq(0)->orderBy('id_desc')->get());
|
||||
$parent = array();
|
||||
while($module = $stmt->fetch())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user