Skip to content
This repository was archived by the owner on Apr 16, 2022. It is now read-only.

Commit 578573f

Browse files
committed
feature #40 Generate HTTPS links for php.net (stof)
This PR was merged into the 1.0-dev branch. Discussion ---------- Generate HTTPS links for php.net Commits ------- d059f86 Generate HTTPS links for php.net
2 parents e0472cd + d059f86 commit 578573f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sensio/sphinx/phpcode.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def php_phpclass_role(typ, rawtext, text, lineno, inliner, options={}, content=[
8080
text = utils.unescape(text)
8181
has_explicit_title, title, full_class = split_explicit_title(text)
8282

83-
full_url = 'http://php.net/manual/en/class.%s.php' % full_class.lower()
83+
full_url = 'https://secure.php.net/manual/en/class.%s.php' % full_class.lower()
8484

8585
if not has_explicit_title:
8686
title = full_class
@@ -96,7 +96,7 @@ def php_phpmethod_role(typ, rawtext, text, lineno, inliner, options={}, content=
9696
full_class = class_and_method[:ns]
9797
method = class_and_method[ns+2:]
9898

99-
full_url = 'http://php.net/manual/en/%s.%s.php' % (full_class.lower(), method.lower())
99+
full_url = 'https://secure.php.net/manual/en/%s.%s.php' % (full_class.lower(), method.lower())
100100

101101
if not has_explicit_title:
102102
title = full_class + '::' + method + '()'
@@ -108,7 +108,7 @@ def php_phpfunction_role(typ, rawtext, text, lineno, inliner, options={}, conten
108108
text = utils.unescape(text)
109109
has_explicit_title, title, full_function = split_explicit_title(text)
110110

111-
full_url = 'http://php.net/manual/en/function.%s.php' % full_function.replace('_', '-').lower()
111+
full_url = 'https://secure.php.net/manual/en/function.%s.php' % full_function.replace('_', '-').lower()
112112

113113
if not has_explicit_title:
114114
title = full_function

0 commit comments

Comments
 (0)