Show
Ignore:
Timestamp:
07/15/08 17:05:24 (4 months ago)
Author:
sidtheduck
Message:

+ Fix for ticket #179
+ Fixes for miscellaneous minor bugs

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/plog-includes/plog-functions.php

    r559 r560  
    792792        function get_album_by_name($name) { 
    793793                $sql = "SELECT * 
    794                 FROM `".TABLE_PREFIX."albumss` 
     794                FROM `".TABLE_PREFIX."albums` 
    795795                WHERE `name` = '".mysql_real_escape_string($name)."'"; 
    796796                $result = run_query($sql); 
     
    12601260        } 
    12611261 
    1262         // Ardamis fix from diffuser theme, don't quite understand why it's needed 
    1263         if (!$plaintext){ 
    1264                 $rv = str_replace("&id","&id",$rv); 
     1262        // replace & with & if outputting to email 
     1263        if ($plaintext !== false){ 
     1264                $rv = str_replace("&","&",$rv); 
    12651265        } 
    12661266 
     
    13361336                $msg .= plog_tr("Comment") . ":\n$comment\n\n"; 
    13371337                $msg .= plog_tr("You can see all the comments for this picture here") . ":\n"; 
    1338                 $picurl = generate_url("picture",$parent_id); 
     1338                $picurl = generate_url("picture", $parent_id, NULL, true); 
    13391339                $msg .= $picurl; 
    13401340                $headers  = "From: $author <$email>\r\n"; 
     
    13451345                $config['admin_email'], 
    13461346                '[' . SmartStripSlashes($config['gallery_name']) . '] ' . plog_tr('New Comment From') . ' ' . $author, 
    1347                 $msg, 
     1347                SmartStripSlashes($msg), 
    13481348                $headers); 
    13491349        }