mirror of
https://github.com/e107inc/e107.git
synced 2025-08-08 07:36:32 +02:00
Bugtracker #2827, #3576, #3577 - stop linkwords appearing in places they shouldn't (code now has to explicitly enable them in various areas), match complete word/phrase only (no partials), fully case-insensitive match and display case exactly as found, don't process on admin pages
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_files/shortcode/batch/download_shortcodes.php,v $
|
||||
| $Revision: 1.6 $
|
||||
| $Date: 2007-01-07 15:59:42 $
|
||||
| $Revision: 1.7 $
|
||||
| $Date: 2007-01-17 21:29:28 $
|
||||
| $Author: e107steved $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
@@ -155,7 +155,7 @@ SC_END
|
||||
|
||||
SC_BEGIN DOWNLOAD_CATEGORY_DESCRIPTION
|
||||
global $tp,$dl;
|
||||
$text = $tp -> toHTML($dl['download_category_description'], TRUE);
|
||||
$text = $tp -> toHTML($dl['download_category_description'], TRUE,'hook=description');
|
||||
if($parm){
|
||||
return substr($text,0,$parm);
|
||||
}else{
|
||||
@@ -204,7 +204,7 @@ SC_END
|
||||
SC_BEGIN DOWNLOAD_VIEW_DESCRIPTION
|
||||
global $tp, $dl;
|
||||
$maxlen = ($parm ? intval($parm) : 0);
|
||||
$text = ($dl['download_description'] ? $tp->toHTML($dl['download_description'], TRUE) : "");
|
||||
$text = ($dl['download_description'] ? $tp->toHTML($dl['download_description'], TRUE, 'hook=description') : "");
|
||||
if($maxlen){
|
||||
return substr($text, 0, $maxlen);
|
||||
}else{
|
||||
|
Reference in New Issue
Block a user