[LON-CAPA-cvs] cvs: rat / lonratedt.pm

raeburn raeburn at source.lon-capa.org
Wed Apr 18 13:37:13 EDT 2012


raeburn		Wed Apr 18 17:37:13 2012 EDT

  Modified files:              
    /rat	lonratedt.pm 
  Log:
  - Bug 1320.
  
  
Index: rat/lonratedt.pm
diff -u rat/lonratedt.pm:1.104 rat/lonratedt.pm:1.105
--- rat/lonratedt.pm:1.104	Mon Nov 14 00:20:46 2011
+++ rat/lonratedt.pm	Wed Apr 18 17:37:12 2012
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Edit Handler for RAT Maps
 #
-# $Id: lonratedt.pm,v 1.104 2011/11/14 00:20:46 raeburn Exp $
+# $Id: lonratedt.pm,v 1.105 2012/04/18 17:37:12 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -727,7 +727,7 @@
                 $filename = $1;
             }
             my $cstrurl = $resurl;
-            $cstrurl =~ s#^/res/[^/]+/([^/]+)/#/priv/$1/#;
+            $cstrurl =~ s{^/res/}{/priv/};
             $r->print(&Apache::loncommon::start_data_table_row()
                      .'<td>'
                      .'<img src="'.&Apache::loncommon::icon($resfilepath).'" />'




More information about the LON-CAPA-cvs mailing list