diff options
-rw-r--r-- | core/controllers/admin_maintenance.php | 5 | ||||
-rw-r--r-- | core/helpers/graphics.php | 10 | ||||
-rw-r--r-- | core/views/admin_block_welcome.html.php | 12 | ||||
-rw-r--r-- | modules/search/helpers/search.php | 7 |
4 files changed, 13 insertions, 21 deletions
diff --git a/core/controllers/admin_maintenance.php b/core/controllers/admin_maintenance.php index 99d6f067..df912e29 100644 --- a/core/controllers/admin_maintenance.php +++ b/core/controllers/admin_maintenance.php @@ -33,9 +33,8 @@ class Admin_Maintenance_Controller extends Admin_Controller { t2("One task is stalled", "%count tasks are stalled", $stalled_count), - t("%link_startview%link_end", - array("link_start" => "<a href=\"" . url::site("admin/maintenance") . "\">", - "link_start" => "</a>"))); + t('<a href="%url">view</a>', + array("url" => url::site("admin/maintenance")))); } $view = new Admin_View("admin.html"); diff --git a/core/helpers/graphics.php b/core/helpers/graphics.php index e16b3086..290d2677 100644 --- a/core/helpers/graphics.php +++ b/core/helpers/graphics.php @@ -253,14 +253,10 @@ class graphics_Core { $count = self::find_dirty_images_query()->count(); if ($count) { site_status::warning( - t2("One of your photos is out of date. %link_startClick here to fix it%link_end", - "%count of your photos are out of date. %link_startClick here to fix them%link_end", + t2('One of your photos is out of date. <a href="%url" class="gDialogLink">Click here to fix it</a>', + '%count of your photos are out of date. <a href="%url" class="gDialogLink">Click here to fix them</a>', $count, - array("link_start" => "<a href=\"" . - url::site( - "admin/maintenance/start/core_task::rebuild_dirty_images?csrf=__CSRF__") . - "\" class=\"gDialogLink\">", - "link_end" => "</a>")), + array("url" => url::site("admin/maintenance/start/core_task::rebuild_dirty_images?csrf=__CSRF__"))), "graphics_dirty"); } } diff --git a/core/views/admin_block_welcome.html.php b/core/views/admin_block_welcome.html.php index 89914fb3..a11f2489 100644 --- a/core/views/admin_block_welcome.html.php +++ b/core/views/admin_block_welcome.html.php @@ -4,15 +4,15 @@ </p> <ul> <li> - <?= t("%link_startGeneral Settings%link_end - General configuation options for your Gallery.", - array("link_start" => "<a href=\"#\">", "link_end" => "</a>")) ?> + <?= t('<a href="%url">General Settings</a> - General configuration options for your Gallery.', + array("url" => "#")) ?> </li> <li> - <?= t("%link_startModules%link_end - Manage available and installed modules.", - array("link_start" => "<a href=\"" . url::site("admin/modules") . "\">", "link_end" => "</a>")) ?> + <?= t('<a href="%url">Modules</a> - Manage available and installed modules.', + array("url" => url::site("admin/modules"))) ?> </li> <li> - <?= t("%link_startPresentation%link_end - Choose a theme, set image sizes.", - array("link_start" => "<a href=\"#\">", "link_end" => "</a>")) ?> + <?= t('<a href="">Presentation</a> - Choose a theme, set image sizes.', + array("url" => "#")) ?> </li> </ul> diff --git a/modules/search/helpers/search.php b/modules/search/helpers/search.php index 3e425289..1cb28519 100644 --- a/modules/search/helpers/search.php +++ b/modules/search/helpers/search.php @@ -53,11 +53,8 @@ class search_Core { static function check_index() { if ($count = ORM::factory("search_record")->where("dirty", 1)->count_all()) { site_status::warning( - t("Your search index needs to be updated. %link_startFix this now%link_end", - array("link_start" => "<a href=\"" . - url::site("admin/maintenance/start/search_task::update_index?csrf=__CSRF__") . - "\" class=\"gDialogLink\">", - "link_end" => "</a>")), + t('Your search index needs to be updated. <a href="%url" class="gDialogLink">Fix this now</a>', + array("url" => url::site("admin/maintenance/start/search_task::update_index?csrf=__CSRF__"))), "search_index_out_of_date"); } } |