[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] Fix reference to non-existent functions

"ushindi bienvenu \(@usbbush\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <69a7f224ae9b7_3b1883dc649c1@gitlab-sidekiq-low-urgency-cpu-bound-v2-6cc94ddffd-644b6.mail>

ushindi bienvenu pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
fa7d91ee by Matt Krol at 2026-03-04T08:42:17+00:00
[FIX] Fix reference to non-existent functions
---
* [UPD] Enable Description in Structure links

* Fix reference to non-existent functions

Change to refer to correct functions

See merge request tikiwiki/tiki!9652

- - - - -


1 changed file:

- lib/structures/structlib.php


Changes:

=====================================
lib/structures/structlib.php
=====================================
@@ -610,7 +610,7 @@ class StructLib extends TikiLib
     public function s_get_page_info($page_ref_id)
     {
         if (empty($this->displayLanguageOrder)) {
-            $query = 'select `pos`, `page_ref_id`, `parent_id`, ts.`page_id`, `pageName`, `page_alias`, `structure_id` ';
+            $query = 'select `pos`, `page_ref_id`, `parent_id`, ts.`page_id`, `pageName`, `description`, `page_alias`, `structure_id` ';
             $query .= 'from `tiki_structures` ts, `tiki_pages` tp ';
             $query .= 'where ts.`page_id`=tp.`page_id` and `page_ref_id`=?';
             $result = $this->query($query, [(int) $page_ref_id]);
@@ -624,6 +624,7 @@ class StructLib extends TikiLib
                     `parent_id`,
                     ts.`page_id`,
                     `pageName`,
+                    `description`,
                     `page_alias`,
                     `structure_id`
                 FROM
@@ -1023,8 +1024,8 @@ class StructLib extends TikiLib
         return [
             'prev' => $this->get_neighbor_info($page_ref_id, 'get_prev_page'),
             'next' => $this->get_neighbor_info($page_ref_id, 'get_next_page'),
-            'prevsibling' => $this->get_neighbor_info($page_ref_id, 'get_prev_sibling'),
-            'nextsibling' => $this->get_neighbor_info($page_ref_id, 'get_next_sibling'),
+            'prevsibling' => $this->get_neighbor_info($page_ref_id, 'getPrevSibling'),
+            'nextsibling' => $this->get_neighbor_info($page_ref_id, 'getNextSibling'),
             'parent' => $this->get_neighbor_info($page_ref_id, 's_get_parent_info'),
             'home' => $this->s_get_structure_info($page_ref_id),
         ];
@@ -1068,7 +1069,7 @@ class StructLib extends TikiLib
     public function s_get_pages($parent_id)
     {
         $ret = [];
-        $query = 'select `pos`, `page_ref_id`, `parent_id`, ts.`page_id`, `pageName`, `page_alias` ';
+        $query = 'select `pos`, `page_ref_id`, `parent_id`, ts.`page_id`, `pageName`, `description`, `page_alias` ';
         $query .= 'from `tiki_structures` ts, `tiki_pages` tp ';
         $query .= 'where ts.`page_id`=tp.`page_id` and `parent_id`=? ';
         $query .= 'order by ' . $this->convertSortMode('pos_asc');



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/fa7d91ee2af2f24cc5a4c6ffecb0438dfdd138cb

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/fa7d91ee2af2f24cc5a4c6ffecb0438dfdd138cb
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.