Guest User

Untitled

a guest
Jul 23rd, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. <?php
  2. /**
  3. * Get video for chapter
  4. *
  5. * @package tlc
  6. * @subpackage processors
  7. */
  8. /* setup default properties */
  9. $chapter = $modx->getOption('chapter',$_REQUEST,false);
  10.  
  11. /* setup query */
  12. if (!$chapter) return $modx->error->failure('Chapter not specified.');
  13. $chapter = $modx->getObject('tlcChapter',$chapter);
  14. if (!$chapter) return $modx->error->failure('Chapter not found!');
  15.  
  16. return $modx->error->success('',$chapter);
Add Comment
Please, Sign In to add comment