Commit 88818f90 authored by Michal Čihař's avatar Michal Čihař

Fix lookup in PHP units

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent d1fd7737
......@@ -415,12 +415,12 @@ class PHPUnit(FileUnit):
def get_source(self):
if self.template is not None:
return self.template.getsource()
return self.unit.getsource()
return self.unit.getid()
def get_target(self):
if self.unit is None:
return ''
return self.unit.gettarget()
return self.unit.getsource()
class FileFormat(object):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment