# This patch file was generated by NetBeans IDE
# Following Index: paths are relative to: /opt/apostrophe/trunk/plugins/apostrophePlugin/lib/toolkit
# This patch can be applied using context Tools: Patch action on respective folder.
# It uses platform neutral UTF-8 encoding and \n newlines.
# Above lines and this line are ignored by the patching process.
|
|
|
|
| 172 | 172 | { |
| 173 | 173 | if ($actions->hasRequestParameter('slug')) |
| 174 | 174 | { |
| 175 | | $slug = preg_replace("/[^\w\-]/", "", $actions->getRequestParameter('slug')); |
| | 175 | $slug = aTools::slugify($actions->getRequestParameter('slug')); |
| | 176 | |
| 176 | 177 | $item = Doctrine_Query::create()-> |
| 177 | 178 | from('aMediaItem')-> |
| 178 | 179 | where('slug = ?', array($slug))-> |