Fix for Code

  1. $index->contexts['page']->path = 'browse';
  2. $_GET['q'] = 'browse/node_type-page';
  3.  
  4. if ($path = trim(ltrim($_GET['q'], $index->contexts['page']->path), '/'))
  5. // $path is 1
  6.  
  7. trim(ltrim($_GET['q'], $index->contexts['page']->path), '/')
  8. // $path is 'node_type-page'

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.