parent
7529a944cf
commit
64ee96b526
|
@ -236,7 +236,7 @@ class WordsController < ApplicationController
|
|||
#modify by nwb
|
||||
#添加对课程留言的支持
|
||||
referer = request.headers["Referer"]
|
||||
obj_id = referer.match(%r(/([0-9]{1,})(/|$)))[1]
|
||||
obj_id = referer.match(%r(/([0-9]{1,})(/|\?|$)))[1]
|
||||
if referer.match(/project/)
|
||||
obj = Project.find_by_id(obj_id)
|
||||
elsif referer.match(/course/)
|
||||
|
|
Loading…
Reference in New Issue