1
0
mirror of https://github.com/e107inc/e107.git synced 2025-09-01 10:23:53 +02:00

allow classes within core shortcodes (.php) + sitelinks duplication fix.

This commit is contained in:
CaMer0n
2009-11-23 10:27:43 +00:00
parent 510bda0f68
commit 8d0028afe1
3 changed files with 199 additions and 183 deletions

View File

@@ -9,8 +9,8 @@
*
*
* $Source: /cvs_backup/e107_0.8/e107_handlers/sitelinks_class.php,v $
* $Revision: 1.25 $
* $Date: 2009-11-22 14:10:07 $
* $Revision: 1.26 $
* $Date: 2009-11-23 10:27:43 $
* $Author: e107coders $
*/
@@ -21,10 +21,12 @@ include_lan(e_LANGUAGEDIR.e_LANGUAGE."/lan_sitelinks.php");
class sitelinks
{
var $eLinkList;
var $eLinkList = array();
function getlinks($cat=1)
{
$this->eLinkList = array(); // clear the array in case getlinks is called 2x on the same page.
$sql = e107::getDb('sqlSiteLinks');
$query = "SELECT * FROM #links WHERE link_category = ".intval($cat)." and link_class IN (".USERCLASS_LIST.") ORDER BY link_order ASC";