by sadaf sadafian.
i use my ow created plugin to use a service of VOD. i use wrong syntax in
\public_html\mod\MYOWNPLUGIN\backup\moodle2\backup_MYOWNPLUGIN_activity_task.class.php
$search = "/(".$base."\//mod\/MYOWNPLUGIN\/index.php\?id\=)([0-9]+)/";
$content = preg_replace($search, '$@MYOWNPLUGIN*$2@$', $content);
// Link to choice view by moduleid.
$search = "/(".$base."\//mod\/MYOWNPLUGIN\/view.php\?id\=)([0-9]+)/";
$content = preg_replace($search, '$@MYOWNPLUGIN*$2@$', $content);
when i change that to:
$search = '/('.$base.'\/mod\/MYOWNPLUGIN\/index.php\?id\=)([0-9]+)/';
$content = preg_replace($search, '$@MYOWNPLUGIN*$2@$', $content);
// Link to choice view by moduleid.
$search = '/('.$base.'\/mod\/MYOWNPLUGIN\/view.php\?id\=)([0-9]+)/';
$content = preg_replace($search, '$@MYOWNPLUGIN*$2@$', $content);
the problem resolved...
thank you KEN .
\public_html\mod\MYOWNPLUGIN\backup\moodle2\backup_MYOWNPLUGIN_activity_task.class.php
$search = "/(".$base."\//mod\/MYOWNPLUGIN\/index.php\?id\=)([0-9]+)/";
$content = preg_replace($search, '$@MYOWNPLUGIN*$2@$', $content);
// Link to choice view by moduleid.
$search = "/(".$base."\//mod\/MYOWNPLUGIN\/view.php\?id\=)([0-9]+)/";
$content = preg_replace($search, '$@MYOWNPLUGIN*$2@$', $content);
when i change that to:
$search = '/('.$base.'\/mod\/MYOWNPLUGIN\/index.php\?id\=)([0-9]+)/';
$content = preg_replace($search, '$@MYOWNPLUGIN*$2@$', $content);
// Link to choice view by moduleid.
$search = '/('.$base.'\/mod\/MYOWNPLUGIN\/view.php\?id\=)([0-9]+)/';
$content = preg_replace($search, '$@MYOWNPLUGIN*$2@$', $content);
the problem resolved...
thank you KEN .