[geeklog-hg] [Geeklog-Core/geeklog] 2311ea: Added Functions to deal with Current Topic

Tom noreply at github.com
Thu Oct 3 09:40:43 EDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/Geeklog-Core/geeklog
  Commit: 2311ea74196889185fe895fa3177793f99bb0a70
      https://github.com/Geeklog-Core/geeklog/commit/2311ea74196889185fe895fa3177793f99bb0a70
  Author: eSilverStrike <eSilverStrike at users.noreply.github.com>
  Date:   2019-10-03 (Thu, 03 Oct 2019)

  Changed paths:
    M plugins/links/functions.inc
    M plugins/staticpages/functions.inc
    M plugins/staticpages/services.inc.php
    M public_html/admin/article.php
    M public_html/admin/plugins/staticpages/index.php
    M public_html/directory.php
    M public_html/index.php
    M public_html/lib-common.php
    M public_html/search.php
    M system/classes/article.class.php
    M system/classes/search.class.php
    M system/lib-comment.php
    M system/lib-topic.php

  Log Message:
  -----------
  Added Functions to deal with Current Topic

For feature #872

New and updated functions added to access and set the current topic:. Geeklgo and core plugins support these new and updated functions.
-TOPIC_setTopic should be used by plugins and most other things to set the current topic (now stored in $_USER['topic_id'] variable). Some checks are done here to ensure proper topic
- TOPIC_currentTopic returns the current topic id
- TOPIC_getTopic figures out the current topic for a plugin based on what plugin item has been accessed (since this is stored in the topic assignment table), and the last topic, etc...

Also fixed extra page issue when articles displayed in topics and multi language pages were count in the page total when they should not be




More information about the geeklog-cvs mailing list