[geeklog-cvs] geeklog-1.3/system lib-plugins.php,1.38,1.39
dhaun at iowaoutdoors.org
dhaun at iowaoutdoors.org
Tue Sep 21 05:43:33 EDT 2004
Update of /var/cvs/geeklog-1.3/system
In directory www:/tmp/cvs-serv23562
Modified Files:
lib-plugins.php
Log Message:
Added missing global $_CONF and made the autotag use "rewritten" article URLs, if enabled.
Index: lib-plugins.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/system/lib-plugins.php,v
retrieving revision 1.38
retrieving revision 1.39
diff -C2 -d -r1.38 -r1.39
*** lib-plugins.php 19 Sep 2004 17:55:59 -0000 1.38
--- lib-plugins.php 21 Sep 2004 09:43:30 -0000 1.39
***************
*** 881,885 ****
*/
function PLG_replacetags($content) {
! global $_TABLES, $_PLUGINS, $LANG32;
// Determine which Core Modules and Plugins support AutoLinks
--- 881,885 ----
*/
function PLG_replacetags($content) {
! global $_CONF, $_TABLES, $_PLUGINS, $LANG32;
// Determine which Core Modules and Plugins support AutoLinks
***************
*** 939,943 ****
$function = 'plugin_autotags_' . $autotag['module'];
if ($autotag['module'] == 'story') {
! $filelink = '<a href="'.$_CONF['site_url'].'/article.php?story='.$autotag['parm1'].'">'.$autotag['parm2'].'</a>';
$content = str_replace($autotag['tagstr'],$filelink,$content);
} elseif (function_exists($function)) {
--- 939,945 ----
$function = 'plugin_autotags_' . $autotag['module'];
if ($autotag['module'] == 'story') {
! $filelink = '<a href="' . COM_buildUrl ($_CONF['site_url']
! . '/article.php?story=' . $autotag['parm1']) . '">'
! . $autotag['parm2'] . '</a>';
$content = str_replace($autotag['tagstr'],$filelink,$content);
} elseif (function_exists($function)) {
More information about the geeklog-cvs
mailing list