equal
deleted
inserted
replaced
97 |
97 |
98 // convert *after* checking against page names so as not to mess |
98 // convert *after* checking against page names so as not to mess |
99 // up what the user typed and what we're checking. |
99 // up what the user typed and what we're checking. |
100 //$page = $this->urlEncode($page); |
100 //$page = $this->urlEncode($page); |
101 $anchor = $this->urlEncode($anchor); |
101 $anchor = $this->urlEncode($anchor); |
102 $text = $this->textEncode($text); |
102 // $text = $this->textEncode($text); |
|
103 |
|
104 // hackish fix for the "external" image in Oxygen [added for Enano] |
|
105 if ( preg_match('/<(.+?)>/is', $text) ) |
|
106 { |
|
107 $nobg = ' style="background-image: none; padding-right: 0;"'; |
|
108 } |
|
109 else |
|
110 { |
|
111 $nobg = ''; |
|
112 } |
103 |
113 |
104 // does the page exist? |
114 // does the page exist? |
105 if ($exists) { |
115 if ($exists) { |
106 |
116 |
107 // PAGE EXISTS. |
117 // PAGE EXISTS. |
121 } |
131 } |
122 |
132 |
123 // get the CSS class and generate output |
133 // get the CSS class and generate output |
124 $css = $this->formatConf(' class="%s"', 'css'); |
134 $css = $this->formatConf(' class="%s"', 'css'); |
125 |
135 |
126 $start = '<a'.$css.' href="'.$href.$as.'">'; |
136 $start = '<a'.$css.' href="'.$href.$as.'"'.$nobg.'>'; |
127 $end = '</a>'; |
137 $end = '</a>'; |
128 } else { |
138 } else { |
129 |
139 |
130 // PAGE DOES NOT EXIST. |
140 // PAGE DOES NOT EXIST. |
131 |
141 |
144 } |
154 } |
145 |
155 |
146 // get the CSS class and generate output |
156 // get the CSS class and generate output |
147 $css = $this->formatConf(' class="%s"', 'css'); |
157 $css = $this->formatConf(' class="%s"', 'css'); |
148 |
158 |
149 $start = '<a'.$css.' href="'.$href.$as.'" class="wikilink-nonexistent">'; |
159 $start = '<a'.$css.' href="'.$href.$as.'"'.$nobg.' class="wikilink-nonexistent">'; |
150 $end = '</a>'; |
160 $end = '</a>'; |
151 |
161 |
152 } |
162 } |
153 if (!strlen($text)) { |
163 if (!strlen($text)) { |
154 $start .= $this->textEncode($options['page']); |
164 $start .= $this->textEncode($options['page']); |