aboutsummaryrefslogtreecommitdiffstats
path: root/include/section_init.inc.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2007-10-02 05:42:22 +0000
committerrvelices <rv-github@modusoptimus.com>2007-10-02 05:42:22 +0000
commit530e3e6974f95be5a5cca823b33ec8f7562fbcf6 (patch)
tree7eb1cb1f5b66c90c8e032b33833a2c1c331ee496 /include/section_init.inc.php
parent58977351dd282cd14b53bbf04494acbddc185900 (diff)
- merge r 2117 from trunk (render_category_description and render_category_literal_description events refactoring)
- fix admin multiview plugin git-svn-id: http://piwigo.org/svn/branches/branch-1_7@2118 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/section_init.inc.php')
-rw-r--r--include/section_init.inc.php17
1 files changed, 11 insertions, 6 deletions
diff --git a/include/section_init.inc.php b/include/section_init.inc.php
index b0baec3bb..05bc60f29 100644
--- a/include/section_init.inc.php
+++ b/include/section_init.inc.php
@@ -204,7 +204,11 @@ if ('categories' == $page['section'])
$page = array_merge(
$page,
array(
- 'comment' => $page['category']['comment'],
+ 'comment' =>
+ trigger_event(
+ 'render_category_description',
+ $page['category']['comment']
+ ),
'title' =>
get_cat_display_name($page['category']['upper_names'], '', false),
)
@@ -331,7 +335,8 @@ SELECT DISTINCT(id)
$page = array_merge(
$page,
array(
- 'title' => $lang['search_result'],
+ 'title' => '<a href="'.duplicate_index_url(array('start'=>0)).'">'
+ .$lang['search_result'].'</a>',
)
);
}
@@ -385,7 +390,7 @@ SELECT DISTINCT(id)
$page = array_merge(
$page,
array(
- 'title' => '<a href="'.duplicate_index_url().'">'
+ 'title' => '<a href="'.duplicate_index_url(array('start'=>0)).'">'
.$lang['recent_pics_cat'].'</a>',
'items' => array_from_query($query, 'id'),
)
@@ -423,7 +428,7 @@ SELECT DISTINCT(id)
$page = array_merge(
$page,
array(
- 'title' => '<a href="'.duplicate_index_url().'">'
+ 'title' => '<a href="'.duplicate_index_url(array('start'=>0)).'">'
.$conf['top_number'].' '.$lang['most_visited_cat'].'</a>',
'items' => array_from_query($query, 'id'),
)
@@ -449,7 +454,7 @@ SELECT DISTINCT(id)
$page = array_merge(
$page,
array(
- 'title' => '<a href="'.duplicate_index_url().'">'
+ 'title' => '<a href="'.duplicate_index_url(array('start'=>0)).'">'
.$conf['top_number'].' '.$lang['best_rated_cat'].'</a>',
'items' => array_from_query($query, 'id'),
)
@@ -472,7 +477,7 @@ SELECT DISTINCT(id)
$page = array_merge(
$page,
array(
- 'title' => '<a href="'.duplicate_index_url().'">'
+ 'title' => '<a href="'.duplicate_index_url(array('start'=>0)).'">'
.$lang['random_cat'].'</a>',
'items' => array_from_query($query, 'id'),
)