| 1 |
<?php |
<?php |
| 2 |
// $Id: taxonomy_theme_paths.inc,v 1.4 2006/10/20 07:42:28 profix898 Exp $ |
// $Id: taxonomy_theme_paths.inc,v 1.1.2.1 2007/02/25 16:49:08 profix898 Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* function _taxonomy_theme_select_paths(). |
* function _taxonomy_theme_select_paths(). |
| 37 |
if (db_num_rows($result)) { |
if (db_num_rows($result)) { |
| 38 |
while ($path = db_fetch_object($result)) { |
while ($path = db_fetch_object($result)) { |
| 39 |
$paths .= empty($paths) ? '' : '|'; |
$paths .= empty($paths) ? '' : '|'; |
| 40 |
$paths .= str_replace(array('*', '/'), array('.*', '\/'), drupal_get_normal_path($path->path)); |
$paths .= str_replace(array('*', '/', '%', '#'), array('.*', '\/', '[^\/]+', '[0-9]+'), drupal_get_normal_path($path->path)); |
| 41 |
} |
} |
| 42 |
} |
} |
| 43 |
$cache[$theme_name] = '/^('.$paths.')$/'; |
$cache[$theme_name] = '/^('.$paths.')$/'; |